SGofCPLrota

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

returns a solid geometry by rotateing a closed x z contour around z axis



See Also: SGofCPLz , SGofCPLsphere , SGofCPLT , SGofCPLrot , SGofCPLzchamfer

Example Illustration

 missing image of SGofCPLrota(CPL,alp,mov,amin,h)

Syntax

[VL,FL]=SGofCPLrota(CPL,[alp,mov,amin,h])

Input Parameter

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.

Output Parameter

VL: Vertex list or SG
FL: Facet list

Examples

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);




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