Introduction - If you have any usage issues, please Google them yourself
InPolyedron detects points inside a manifold closed surface (even non convex ones). The normal orientation is assumed to be outwards. Warning there is no check for closed surface or normal orientation, open surfaces will give nonsense results.
In the limit of numerical accuracy, points lying on the surface will be considered in.
Usage
Input:
■p: points of the surface npx3 array
■t: triangles indexes, first points flagged as one, ntx3 array
■tnorm: outward normals of traingles, ntx3 array
■qp: points to be queried, nqx3 array
Output:
■in: nqx1 logical vector, true for in, false for out