SGofVLtrans

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 2.4, Creation date: 2015-08-08, Last change: 2025-09-14

returns a convex solid for a transformed vertex list

Description

Useful state of the art function to move/rotate a base contour first, the create a convex delaunay solid, a returns it with index lists for the individual surfaces (uses SGofVLdelaunay).
Translation support: dz, t-vector, 3x3 matrix, 3x4, 4x4 matrices

Example Illustration

 missing image of SGofVLtrans(VL,T,TS,comp)

Syntax

[SG,ViL,FiL,FNL,FoL]=SGofVLtrans(VL,T,[TS,comp])

Input Parameter

VL: Vertex list (nx3) or (nx2)
T: required translation; if scalar the t==>t=[0 0 t];
TS: transformation of the solid afterwards; default is [];
comp: compensates the contraction for phi-x or phi-y; default is false

Output Parameter

SG: Solid geoemtry
ViL: Vertex index list for the surface
FiL: Facet index list for the base and tranformed contour
FNL: facet normal list for the base and transformed contour
FoL: Facet index list for the outside shell of the solid

Examples


SGofVLtrans(PLcircle(10,4),[rotdeg(0,0,45),[0 ;0 ;40]]) % rotz-45 and t=40
SGofVLtrans(PLcircle(10,4),-30); % z=-30




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