SGmagnifyVL
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 3.3, Creation date: 2017-01-05, Last change: 2025-09-14
magnifies/shrinks the dimensions of the vertex list
Description
The factor for half the volume is m=.5^(1/3)
In contrast to SGgrow, this function just multiplies the vertex list with a constant factor. The factor is either fixed or calculated from a limiting bounding box [limx limy limz]. In the second case, the scaling can be proportional or to fill the limiting bounding box.
See Also: SGgrowoutsideFS
, SGgrow
, SGscale2dim
, SGshrinktofit
Example Illustration
Syntax
[SG,m]=SGmagnifyVL(oSG,m,[lim,prop])
Input Parameter
oSG: | | Original Solid Geoemtry |
m: | | magnification value or [mx my mz] |
lim: | | optional boundaries for magnification |
prop: | | proportional scaling; default is true |
Output Parameter
SG: | | resulting Solid Geometry |
m: | | used scaling factor [mx my mz] |
Examples
A=SGbox([10 10 10]);
SGmagnifyVL(A,[3 2 1.5])
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