by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Modeling function
Introduced first in SolidGeometry 2.0, Creation date: 2014-11-29, Last change: 2025-09-14
See Also: VLFLofCPLz
, VLFLofCPL
[VL,FL,CPL]=VLFLofCPLrot(CPL,[n,rcorr])
CPL: | Radius-Z List | |
n: | number of edges of the prismatic cross section | |
rcorr: | true = increase that R is on circle; default R is incircle |
VL: | Vertex list | |
FL: | Facet list | |
CPL: | Resulting contour polygon list |
Generating different solids by rotating a contour
CPL=[0 0; 20 0; 20 10; 0 10; NaN NaN; 1 1; 9 1; 9 9; 1 9; NaN NaN; 2 2; 8 2; 8 8; 2 8 ];
CPL(:,1)=CPL(:,1)+5
CPL=PLcircle(10);
CPL=[0 10; 2 8; 0 5; 0 4; 4 1; 0 0];
[VL,FL,NCPL]=VLFLofCPLrot (CPL);
VLFLchecker(VL,FL);
VLFLviewer(VL,FL); VLFLplotlight (1,0.5), view(-30,30); PLELofCPL (NCPL); show