Syntax
[SG,FLW,FLB,FLT]=SGsphere(R,[nr,wt,wb,Ry,Rz])
Input Parameter
R : | | Radius |
nr : | | number of points; default is []; |
wt : | | top angle; default is +pi/2 |
wb : | | bottom angle; default is -pi/2 |
Ry : | | Radius in Y; default is R |
Rz : | | Radius in Z; default is R |
Output Parameter
SG : | | Solid Geometry |
FLW : | | Faces of the wall, related to SG.VL |
FLB : | | Faces of the bottom, related to SG.VL |
FLT : | | Faces of the cover, related to SG.VL |
Examples
SGsphere(10,[],pi/10)
[SG,FLW]=SGsphere(10,'',0); SG.FL=FLW; SGfigure(SG); view(-30,30)
[SG,FLW]=SGsphere(10,'',pi/3,-pi/3); SG.FL=FLW; SGfigure(SG); view(-30,30)
SG=SGtransR(SG,rot(pi/6,0,0)); SGfigure(SG);
Copyright 2015-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