in_polyhedron
Version 1.2.0.1 (140 KB) by
Jaroslaw Tuszynski
Tests if points are inside of triangulated volume.
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 (2026). in_polyhedron (https://www.mathworks.com/matlabcentral/fileexchange/48041-in_polyhedron), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2017b
Compatible with any release
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 >
Find more on Surface and Mesh Plots in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Triangle/Ray Intersection, inpolyhedron - are points inside a triangulated volume?
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 |
|
