Syntax
SG=SGegg([r,a])
Input Parameter
r : | | radius; default is 10 |
a : | | alpha of evolvente; default is pi |
Output Parameter
Copyright 2023-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
Algorithm (Workflow)
This function, SGegg
, generates the surface geometry of an egg shape based on an evolvente. It is part of the SG-Library and was introduced in SolidGeometry 5.3.
Input Parameters
- r: The radius of the egg shape. The default value is 10 if not specified.
- a: The alpha parameter of the evolvente. The default value is pi if not specified.
Output
- SG: The resulting solid geometry of the egg shape.
Algorithm Steps
- The function begins by retrieving the input parameters
r
and a
using the getfuncparams
function. If these parameters are not provided, default values are used: 10 for r
and pi for a
.
- The function
PLegg
is called with the parameters r
and a
to generate a profile line (PL) of the egg shape.
- The profile line is then filtered to include only the points where the x-coordinate is greater than or equal to zero.
- The function
SGofCPLrot
is called with the filtered profile line to create the solid geometry by rotating the profile line around an axis.
- If no output argument is specified, the function will automatically plot the resulting solid geometry using
SGfigure
and SGplotalpha
functions. The plot is displayed with a rotation angle of -30 to 30 degrees and a white color for the plot.
Algorithm explaination created using ChatGPT on 2025-08-18 22:16. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21