Re: determine if point is in a volume
- From: helper <spam@xxxxxxxxxx>
- Date: Fri, 26 May 2006 14:51:27 -0400
pinpress wrote:
Hello,
Can any one give some hint how to efficiently determine if a 3D
point
is inside a 3D volume specified by a surface triangular mesh? In
2D,
I can simply use "inpolygon". If we know for sure and in advnace
that the 3D volume is a convex, maybe I can use tsearch and
calculate
where the point is relative to its closest triangle. Or, just ust
inpolygon 3 times for each of the 3 projections onto xy,yz and zx
planes. However, how do I solve this problem more generally?
Thanks
a lot!
Use GRIDDATAN. If the value is NaN, it is not in the volume. If it
is non-NaN, it is.
.
- Follow-Ups:
- Re: determine if point is in a volume
- From: John D'Errico
- Re: determine if point is in a volume
- References:
- determine if point is in a volume
- From: pinpress
- determine if point is in a volume
- Prev by Date: Re: ROTATING AXIS TICK LABELS
- Next by Date: Re: Help needed on QUAD-code
- Previous by thread: determine if point is in a volume
- Next by thread: Re: determine if point is in a volume
- Index(es):