SGstrechez

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 5.3, Creation date: 2023-04-11, Last change: 2025-09-15

streches Objects along an axis to fit intervals or positions



See Also: SGstretching , SGscale2dim , SGshrinktofit

Example Illustration

 missing image of SGstrechez(SG,ez,zz,ss,

Syntax

[SG0,TL,TK]=SGstrechez([SG,ez,zz,ss,"mode","debug"])

Input Parameter

SG: Solid Geometry
ez: strching axis; default is 'x'
zz: intervalls ('dist') or positions ('pos')
ss: scaling factor ('dist') or new positions ('pos')
"mode": default is 'dist', use also 'pos'
"debug": if used, steps are shown

Output Parameter

SG0: Streched Geometry
TL: List of Frames in the Original
TK: List of Frames in the Streched Object

Examples


SGtetramesh(SGbox,1.5); SGB=ans;
SGstrechez(SGB,'x',[5 5 5],[1 0.5 2])
SGstrechez(SGB,'x',[0 10 20 28],[0 5 10 25],'mode','pos')




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