PLbending
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 3.7, Creation date: 2017-03-29, Last change: 2025-09-14
bends a CPL on a cylinder or spherical ellipsoid
Description
This function bends closed polygon line on a radial sphere (cylinder or ball). The original CPL 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 points on the surface
See Also: CPLaddauxpoints
, PLFLofCPLdelaunayGrid
, CVLofCPLbendspherical
, CVLofCPLbendsinus
, SGbending
Example Illustration
Syntax
PLN=PLbending(PL,[Rx,de,Ry,Rz,cent])
Input Parameter
PL: | | Point List |
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
PLN: | | Vertex list of the bended point list |
Examples
Bends a CPL 1 mm above a sphere
CPL=CPLoftext('Test'); PLbending(CPLaddauxpoints(CPL,1),50,10,50,50);
[PL,FL,EL]=PLFLofCPLdelaunayGrid(CPL,1,1,1); VLFLplot(PL,FL);
PL=PLbending(PL,50,10,50,50); VLFLplot(PL,FL);
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