Polygon2Voxel

Convert a triangulated mesh into a voxel volume

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Dirk-Jan Kroon (2026). Polygon2Voxel (https://uk.mathworks.com/matlabcentral/fileexchange/24086-polygon2voxel), 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.8.0

pure Matlab (previous version required c++ compiler)

Download
1.7.0

Function now also working without compiling c-code

Download
1.6.0

Added boundary options

Download
1.5.0

Now first index volume is 1,1,1 instead of 0,0,0, and YXZ dimensions as in Matlab convention (Thanks Yuanming SUO).

Download
1.4.0

Changed output to Logicals instead of Double datatype

Download
1.3.0

Small Bug fixed, for the case if all vertices are outside the volume. Only not draw the face if they are outside at the same side of the volume.

Download
1.2.0

Linux Ubuntu Tested

Download
1.1.0

Added center and resize options

Download
1.0.0

Download