Thread Subject: intersections between 2 volumes

Subject: intersections between 2 volumes

From: Irina Grigorova Grigorova

Date: 19 Jul, 2009 06:29:01

Message: 1 of 9

I wonder if there is an easy way to determine whether there is an intersection between two patches. Thanks!
Irina

Subject: intersections between 2 volumes

From: John D'Errico

Date: 19 Jul, 2009 10:11:01

Message: 2 of 9

"Irina Grigorova Grigorova" <grig76@gmail.com> wrote in message <h3uefd$dct$1@fred.mathworks.com>...
> I wonder if there is an easy way to determine whether there is an intersection between two patches. Thanks!
> Irina

Sorry, but no, there is not.

John

Subject: intersections between 2 volumes

From: Luigi Giaccari

Date: 19 Jul, 2009 11:25:02

Message: 3 of 9

You need to give more informations:

-quad or triangular pathes?
-Do you have normals?

Anyway john is right, no easy way to do that.

Maybe this function can help you:

http://www.mathworks.com/matlabcentral/fileexchange/24631

Subject: intersections between 2 volumes

From: Sprinceana

Date: 19 Jul, 2009 11:43:01

Message: 4 of 9

"Irina Grigorova Grigorova" <grig76@gmail.com> wrote in message <h3uefd$dct$1@fred.mathworks.com>...
> I wonder if there is an easy way to determine whether there is an intersection between two patches. Thanks!
> Irina



Maybe this link could provide you more information of what you're trying to do.


http://www.mathworks.com/access/helpdesk/help/toolbox/map/index.html?/access/helpdesk/help/toolbox/map/polybool.html&http://www.google.ro/search?hl=ro&q=intersection+2+patches+patches+function+matlab&btnG=C%C4%83utare+Google&meta=&aq=f&oq=



Or look at the function patches in matlab:

In command window type:

>>doc patches

Subject: intersections between 2 volumes

From: Sprinceana

Date: 19 Jul, 2009 12:01:03

Message: 5 of 9

Sry the name of the matlab function is patch not patches.


Sry:(.

So type:

>>doc patch

Subject: intersections between 2 volumes

From: Irina Grigorova Grigorova

Date: 19 Jul, 2009 13:16:01

Message: 6 of 9

Thanls! Ufh. Could not find a way to do that in the doc files.
Do you think there is a way to check whether a single point is in a patch (inside surface)?

Irina


"Sprinceana " <mihaispr@yahoo.com> wrote in message <h3v1tv$oa2$1@fred.mathworks.com>...
> Sry the name of the matlab function is patch not patches.
>
>
> Sry:(.
>
> So type:
>
> >>doc patch

Subject: intersections between 2 volumes

From: John D'Errico

Date: 19 Jul, 2009 14:00:02

Message: 7 of 9

"Irina Grigorova Grigorova" <grig76@gmail.com> wrote in message <h3v6ah$bfu$1@fred.mathworks.com>...
> Thanls! Ufh. Could not find a way to do that in the doc files.
> Do you think there is a way to check whether a single point is in a patch (inside surface)?
>

Polybool will not tell you if a point is inside a volume.
If you only care about a point inside a polygon, then
inpolygon will do very nicely, and you don't need the
mapping toolbox.

To find if a point is inside a convex domain, you can
use a tool like inhull, from the file exchange. But this
assumes that your domain be a convex volume. To
know if a point is inside a general non-convex surface
is more difficult.

One simple trick is to consider any ray that emanates
from the point to infinity. If it crosses the surface an
odd number of times, then the point is inside.

John

Subject: intersections between 2 volumes

From: Luigi Giaccari

Date: 19 Jul, 2009 15:52:01

Message: 8 of 9

Hi John,

Can you please check your e-mail, I need an aswer to organize my work :-)

To find a point inside a non convex manifold you can use:

http://www.mathworks.com/matlabcentral/fileexchange/24631

It does use the ray tracing method but in slightly different way. Counting the number of interestction can be very tricky for points lying on edges/points of the surface.

http://giaccariluigi.altervista.org/blog/

Best regards Luigi

Subject: intersections between 2 volumes

From: Irina Grigorova Grigorova

Date: 19 Jul, 2009 16:41:01

Message: 9 of 9

Thank you very much for all information!
Best,
Irina

"Luigi Giaccari" <giaccariluigi@msn.com> wrote in message <h3vff1$aps$1@fred.mathworks.com>...
> Hi John,
>
> Can you please check your e-mail, I need an aswer to organize my work :-)
>
> To find a point inside a non convex manifold you can use:
>
> http://www.mathworks.com/matlabcentral/fileexchange/24631
>
> It does use the ray tracing method but in slightly different way. Counting the number of interestction can be very tricky for points lying on edges/points of the surface.
>
> http://giaccariluigi.altervista.org/blog/
>
> Best regards Luigi

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
inpolygon Sprinceana 19 Jul, 2009 10:36:53
patch Sprinceana 19 Jul, 2009 08:04:03
polybool Sprinceana 19 Jul, 2009 07:52:55
patches Sprinceana 19 Jul, 2009 07:44:03
reference Sprinceana 19 Jul, 2009 07:44:03
volume Irina Grigorova Grigorova 19 Jul, 2009 02:34:02
patches Irina Grigorova Grigorova 19 Jul, 2009 02:34:02
intersections Irina Grigorova Grigorova 19 Jul, 2009 02:34:02
rssFeed for this Thread

Contact us at files@mathworks.com