I took the egg example in the standard Examples folder. It has the shape of the egg hard-wired. To allow for different egg shapes I extended it by adding a width parameter. width=0.7*height gives a hen's egg. Try other values for 0<width<height .
If you search online for 'egg shape equation' it is easy to find the maths on which this model is based.
Also, the original has a parameter for controlling the smoothing near the ends. This doesn't need to be a parameter, so I changed it to steps/2pi which is the optimum value.
I don't know how to add comments to GraphSCAD models, so I simply added a String node.
- Attachments
- egg.zip
- Chris Lusby Taylor's version of the egg example scad file.
- You don't have permission to download attachments.
- (3 Kb) Downloaded 0 times