by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 4.2, Creation date: 2017-10-18, Last change: 2025-09-14
See Also: SGofCPLz
, SGofCPLsphere
, SGofCPLT
, SGofCPLrot
, SGofCPLzchamfer
[VL,FL]=SGofCPLrota(CPL,[alp,mov,amin,h])
CPL: | Closed contour in [x z] | |
alp: | sweeping angle | |
mov: | false = cut; negative x values; true=move to zero | |
amin: | angle offset; default is 0 | |
h: | optional height to create gear worms etc. |
VL: | Vertex list or SG | |
FL: | Facet list |
SGofCPLrota(CPLsample(31),1.5*pi);
SGofCPLrota(PLcircle(10),1.5*pi,false);
SGofCPLrota(PLcircle(10),1.5*pi,true);
PLtrans0(PLgearrackDIN(1,1)); PL=ans; PL=PL-[0 min(PL(:,2))]; PLplot(PL,'b-')
SGofCPLrota(CPLofPL(PL(:,[2 1])+[5 0]),12*pi,false,'',20);
PLtrans0(PLgearrackDIN(1,1)); PL=[ans;nan nan; PLcircle(0.5)]; PL=PL-[0 min(PL(:,2))]; PLplot(PL,'b-')
SGofCPLrota(CPLofPL(PL(:,[2 1])+[5 0]),12*pi,false,'',20);