PointInMesh()?

Blitz3D Forums/Blitz3D Programming/PointInMesh()?

Odds On(Posted 2003) [#1]
Given a closed mesh and a specified point in world space, is it possible to find out if that point is inside the mesh? I need this to be very fast if possible.

Thanks


fredborg(Posted 2003) [#2]
If the mesh is convex it is possible and fast (depending on the complexity of the mesh). Try searching for 'point inside convex hull' or something like that :)


Beaker(Posted 2003) [#3]
You can build a proxy convex mesh to surround (or just represent larger areas) of your mesh. Or you can use multiple convex meshes to represent (roughly or accurately) your mesh. Or there are other ways to simply represent your mesh, including spheres.


Rob(Posted 2003) [#4]
Entitydistance is cool if you want a rough approximation.