The EggOvoid script builds 3 types of egg-like profile curves, the Oviform curve, the Pyriform curve, and the Avianform curve.
Consider a hen's egg with the long axis length, parameter "L", centered along the x_axis, with the blunt end at x = -L/2, and the pointy end at x = +L/2.
Parameter "B" is the egg maximum Breadth, with B_axis parallel to the y_axis.
Parameter "w" is the distance from the B_axis to the y_axis. (shift)
Parameter "D" is the vertical Diameter of the egg, at L/4.
The default parameters approximate a hens large egg, in millimeters.
Note that by clicking on the parameter name, it's default is restored.
A universal equation for eggs has been devised. It is based upon numerous simple math operations. In the EggOvoid script, the universal equation is called "Avianform."
"D" is only used by the Avianform equation.
References:
The primary paper is pay per view, but the extensive math documentation is a free download:
https://nyaspubs.onlinelibrary.wiley.com/doi/10.1111/nyas.14680#:~:text=2-
,Conclusion,egg%20that%20exists%20in%20nature.
A preprint version is free:
https://www.biorxiv.org/content/10.1101/2020.08.15.252148v1.full.pdf
https://kar.kent.ac.uk/89257/1/Narushin%26al2020%28bioRxiv%29.pdf
The next reference is a superb, elegant summary, for the first 2 curves.
https://medium.com/predict/the-universal-equation-for-eggs-d9bbb73857a2
(The universal equation has its parts mixed up.)
The John D. Cook reference is also excellent, and brings up the failure of the "universal" equation to preserve the values of w and/or B.
https://www.johndcook.com/blog/2021/08/28/empirical-egg-formula/
The Oviform shape is an oval shaped curve.
If L=B, a half circle curve results, which revolves to a sphere.
If w=0, a half ellipse curve results, which revolves to an ellipsoid.
The Pyriform shape is a pear shaped curve. The pointy end is more cone-like.
The Avianform shape is the egg shape based upon the universal equation, and applies to the eggs of birds, as well as reptiles, dinosaurs, and perhaps other egg-layers. The Avianform equation is the only equation which uses the D parameter. To model a real egg, the measured values of D, L, B and w, might enable the universal equation to draw the actual shape of the egg, but there is the previous mentioned problem with "w" and or "B". If parameters w or D are too far out of range, the curve will not match a real egg.
Update: the full, closed profile is now created.
the profile curve can be revolved 360 degrees for a solid egg. Other curve segments could be rotated, to create other shapes, which may not be actual eggs.
https://brinsea.co.uk/latest/resource-centre/egg-sizes/
https://www.sheffield.ac.uk/news/nr/guillemot-eggs-shape-seabirds-climate-change-puffins-uk-1.799938
Next up is to gather egg lengths and images to measure the parameters in MoI, including eggs of hen, guillemot, duck, goose, etc.
Avianform parameters for Hens egg: L=62mm, B=45.5mm, w=5.74mm, D=35.6mm.
(very good fit)
Avianform parameters for Common Guillemot egg: L:82mm, B:48.74mm, w:12.08mm, d:31.8mm. (fairly good fit)