cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

Added cone 3D primitive to Workplane.

Open martinbudden opened this issue 4 years ago • 13 comments

I've added a cone 3D primitive to the Workplane, as per item on the roadmap, https://github.com/CadQuery/cadquery/blob/master/doc/roadmap.rst

This follows the OpenSCAD style, so if a single radius is specified a normal cone is created, whereas if radius1 and radius2 is specified then a truncated cone is created.

So cq.Workplane("XY").cone(40, 10) creates a cone with height 40 and radius 10 whereas cq.Workplane("XY").cone(40, radius1=10, radius2=5) creates a truncated cone with bottom radius 10 and top radius 5.

martinbudden avatar Aug 25 '21 17:08 martinbudden