intriangulation(ver​tices,faces,testp,h​eavytest)

Are 3D-testpoints located inside or outside an arbitrary watertight mesh with vertices and faces?

Download
Download

You are now following this Submission

Cite As

Johannes Korsawe (2026). intriangulation(vertices,faces,testp,heavytest) (https://www.mathworks.com/matlabcentral/fileexchange/43381-intriangulation-vertices-faces-testp-heavytest), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Mesh voxelisation

Categories

Find more on Computational Geometry in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.5.0

Added function drehmatrix, which is needed for optional parameter heavytest.
Also added comments for alternative interpretation of heavytest inside code.

Download
1.4.0

result=1 for testpoints==vertices

Download
1.3.0

Numerous improvements in speed using Matlab Profiler.

Download
1.2.0

Algorithm update: No more fails if testpoint is projected on edge of mesh.

Download
1.1.0

Following the idea of Sven's hint. Testing successive directions only if former tests left undeterminable results.

Download
1.0.0

Download