SGlevelheight

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 5.2, Creation date: 2022-08-09, Last change: 2025-09-15

changes the height of a solid depending on the x/y coordinates

Description

Function tries to use SGremsurfedgepoints at the end.


See Also: SGshearing , SGbending , SGofCPLzdelaunayGrid , SGofCPLsphere , CPLaddauxpoints , SGremsurfedgepoints

Example Illustration

 missing image of SGlevelheight(SG,mmz,ax)

Syntax

SG=SGlevelheight(SG,[mmz,ax])

Input Parameter

SG: Solid Geometry
mmz: [minvalue maxvalue maxheight rampsize]; default is [-inf inf nan] nan == no change
ax: height-axis; dimension-axis]; default is [z y]

Output Parameter

SG: modified Solid

Examples


SG=SGtetramesh(SGsubtract(SGbox([30 20 10]),SGbox([28 18 8])))
SGlevelheight(SG,[-5 inf 2],'zx')
SGlevelheight(SG,[-5 inf 2],'zy')
SGlevelheight(SG,[-5 inf 2 5],'zx')
SGlevelheight(SG,[-5 inf 2 5],'zy')




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