in_polyhedron
Tests if points are inside of triangulated volume. There are NO assumptions about orientation of the face normals. The code uses simple algorithm, is fully documented and optimized for speed.
Cite As
Jaroslaw Tuszynski (2024). in_polyhedron (https://www.mathworks.com/matlabcentral/fileexchange/48041-in_polyhedron), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Surfaces, Volumes, and Polygons > Surface and Mesh Plots >
- MATLAB > Mathematics > Computational Geometry > Triangulation Representation >
Tags
Acknowledgements
Inspired by: Triangle/Ray Intersection, inpolyhedron - are points inside a triangulated volume?
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.2.0.1 | improve test for points on the surface |
|
|
1.2.0.0 | fixed case when test points are the same as the grid points |
|
|
1.1.0.0 | Better icon |
||
1.0.0.0 |
|