by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 4.0, Creation date: 2017-07-20, Last change: 2025-09-14
See Also: VLmeshgrid
[X,Y,Z,VL,xx,yy,zz]=meshgridofBB(SG,[nx,ny,nz,thr])
SG: | Solid geometry | |
nx: | number of steps in x-direction | |
ny: | number of steps in y-direction | |
nz: | number of steps in z-direction | |
thr: | elongation before and after; default is 0 |
X: | X-Values of Meshgrid | |
Y: | Y-Values of Meshgrid | |
Z: | Z-Values of Meshgrid | |
VL: | Vertex List of the meshgrid | |
xx: | steps in x-direction | |
yy: | steps in y-direction | |
zz: | steps in z-direction |
SG=SGreadSTL(which('ForearmLink.stl'))
[X,Y,Z]=meshgridofBB(SG,10,10,10)
[~,~,~,VL]=meshgridofBB(SG,20,20,20); SGisInterior(SG,VL);