Re: determine if point is in a volume



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.
.