VMofVL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - VM/Voxels
Introduced first in SolidGeometry 4.3, Creation date: 2018-09-24, Last change: 2025-09-14

returns a Voxel model from a vertex list



See Also: VLofVM , SGofVMdelaunay , SGofVMisosurface , SGofVMmarchcube

Example Illustration

 missing image of VMofVL(VL,res)

Syntax

[VM,vs,SG]=VMofVL(VL,[res])

Input Parameter

VL: Vertex list
res: Optional resolution; default is 2m

Output Parameter

VM: Voxel model
vs: size of voxel
SG: optional Solid Geometry

Examples


SR300getVL; VL=ans; SGfigure; VLplot(VL,'.'); view(0,-90);
[a,b,c]=VMofVL(VL,5);
SGc=SGsurfaces(c);
for i=1:length(SGc); A(i)=SGarea(SGc{i}); end; Asum=sum(A); m=find(A==max(A))
SGfigure; SGplot(SGc{m});




Copyright 2018-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21