Mesh voxelisation

Voxelise a triangular-polygon mesh.

Download
Download

You are now following this Submission

Cite As

Adam Aitkenhead (2026). Mesh voxelisation (https://in.mathworks.com/matlabcentral/fileexchange/27390-mesh-voxelisation), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Added a missing sub-function

Download
1.20.0-0

Added a missing sub-function

Download
1.19.0

Added checking of ray/vertex intersections, which reduces artefacts in situations where the mesh vertices are located directly on ray paths in the voxelisation grid.

Download
1.18.0

Minor edits to the documentation

Download
1.17.0

Improved method of finding which mesh facets can possibly be crossed by each ray. Up to 80% reduction in run-time.

Download
1.16.0

Include the utility CONVERT_meshformat.m, which enables the vertex coordinates to be converted from an Nx3x3 array to faces,vertices info. Ie.
[faces,vertices] = CONVERT_meshformat(coordVERTICES)

Download
1.15.0

Fixed bug in automatic grid generation.

Download
1.14.0

Changed handling of automatic grid generation to reduce chance of artefacts.

Download
1.12.0

The grid no longer has to entirely enclose the mesh.

Download
1.11.0

Allow input to be a structure containing [faces,vertices] data, similar to the type of structure output by isosurface.

Download
1.10.0

And another minor bug fix.

Download
1.9.0

Bug fix.

Download
1.8.0

Enable ray-tracing in any combination of the x,y,z directions.

Download
1.7.0

Improved the automatic detection of binary and ascii STL files.

Download
1.6.0

Fixed a bug introduced by the change to a logical output array.

Download
1.5.0

Output is now a logical array, improving the meory efficiency.

Download
1.4.0

Provided a clearer example of how to use the code.

Download
1.3.0

Now optionally output the grid x,y,z coordinates. Robustness also improved.

Download
1.2.0

Now also works with non-STL input. Changes also provide a significant speed improvement.

Download
1.1.0

Fixed a bug which caused artifacts to appear for some STLs.

Download
1.0.0

Download