meshgridofBB

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

returns a meshgrid for the coordinates of a solid



See Also: VLmeshgrid

Example Illustration

 missing image of meshgridofBB(SG,nx,ny,nz,thr)

Syntax

[X,Y,Z,VL,xx,yy,zz]=meshgridofBB(SG,[nx,ny,nz,thr])

Input Parameter

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

Output Parameter

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

Examples


SG=SGreadSTL(which('ForearmLink.stl'))
[X,Y,Z]=meshgridofBB(SG,10,10,10)

[~,~,~,VL]=meshgridofBB(SG,20,20,20); SGisInterior(SG,VL);




Copyright 2017-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