SGbending

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 3.7, Creation date: 2017-03-29, Last change: 2025-09-14

beates a solid geoemtry on a cylinder or spherical ellipsoid

Description

This function bends a solid geometry on a radial sphere (cylinder or ball). The original solid is not modified, i.e. it is not intended to add additional points on the surface before the bending:
Use CPLaddauxpoints to add points on the contour
Use PLFLofCPLdelaunayGrid to add point on the surface
Use SGofCPLzdelaunayGrid to create solids with a grid


See Also: SGofCPLzdelaunayGrid , SGofCPLsphere , CPLaddauxpoints , PLFLofCPLdelaunayGrid

Example Illustration

 missing image of SGbending(SG,Rx,de,Ry,Rz,cent)

Syntax

SGN=SGbending(SG,[Rx,de,Ry,Rz,cent])

Input Parameter

SG: Solid Geometry
Rx: Radius Rx
de: distance/intrusion; default is -0.1
Ry: Optional radius Ry; default is 10000
Rz: Optional radius Rz; default is Rx
cent: center solid before bending; default is true

Output Parameter

SGN: Solid Geometry

Examples

Bends a surface 1 mm above a sphere
SG=SGofCPLzdelaunayGrid(CPLoftext('Test'),2,1,1,1);
SGbending(SG,50,1,20,50)
SGbending(SG,50,1,20,50,false)




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