This tool finds the voxels of a polyhedron. Example file is provided. The polyhedron faces should be divided into triangles. The numbering of all triangles faces should be consistent. Either all of them in clock wise or counter clock wise direction as seen from the outside.
function voxels=Polyhedron2voxels(V,F,vs)
Input:
V: (Nv,3) vertices matrix
F: (Nf,3) faces matrix
vs is voxels size.
output:
voxels is (N*3) coordinate matrix of the centers of N voxels.
Cita come
Ayad Al-Rumaithi (2025). Voxels of Polyhedron (https://it.mathworks.com/matlabcentral/fileexchange/159953-voxels-of-polyhedron), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
              Creato con
              R2023b
            
            
              Compatibile con qualsiasi release
            
          Compatibilità della piattaforma
Windows macOS LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
