BelfrySCAD / BOSL2

The Belfry OpenScad Library, v2.0. An OpenSCAD library of shapes, masks, and manipulators to make working with OpenSCAD easier. BETA
https://github.com/BelfrySCAD/BOSL2/wiki
BSD 2-Clause "Simplified" License
1.01k stars 115 forks source link

Feature request: 3d egg #1505

Closed pimlie closed 1 week ago

pimlie commented 1 week ago

Is your feature request related to a problem? Please describe.

There doesn't seem to be a way currently to create a 3d object with different radii to create shapes like 3d eggs, bell's and/or simple rocket nozzle's.

Describe the solution you'd like

A quick & easy way to create a 3d egg-like object with varying curved angle

Describe alternatives you've considered

Example Code na

Additional context

i'd consider:

I understand that this is probably already possible somehow, but given the available 3d shapes this one seems missing. Or in other words, basically the onion shape shouldn't have to exists and could probably be a variant of the 3d egg?

adrianVmariano commented 1 week ago

You just have to cut off half the egg:

rotate_extrude()
  right_half(planar=true)
    zrot(90)
      egg(100,40,30,120);
pimlie commented 1 week ago

Hmm, now I feel stupid. In my defense, I tried something similar but OpenSCAD rendered nothing. I guess I mainly missed the planar=true

Thanks for the help :)