SGegg

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 5.3, Creation date: 2023-03-07, Last change: 2025-09-15

returns the Surface Geometry of an egg based on an evolvente



See Also: PLegg

Example Illustration

 missing image of SGegg(r,a)

Syntax

SG=SGegg([r,a])

Input Parameter

r: radius; default is 10
a: alpha of evolvente; default is pi

Output Parameter

SG: Solid




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

Output

Algorithm Steps

  1. 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.
  2. The function PLegg is called with the parameters r and a to generate a profile line (PL) of the egg shape.
  3. The profile line is then filtered to include only the points where the x-coordinate is greater than or equal to zero.
  4. The function SGofCPLrot is called with the filtered profile line to create the solid geometry by rotating the profile line around an axis.
  5. 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