jscad / csg.js

DEPRECATED: CSG Library for JSCAD (See the link below)
https://github.com/jscad/OpenJSCAD.org/tree/master/packages/modeling
MIT License
218 stars 56 forks source link

Allow Start and Stop Angles for both circles and ellipses #73

Closed z3dev closed 4 years ago

z3dev commented 6 years ago

Currently, circles and ellipses are complete 360 degree forms. This enhancement would allow both start and stop angles, and control how many degrees to include.

z3dev commented 6 years ago

Funny but cylinder() has the following option, allowing a partial (non-360) cylinder to be created.

let alpha = parseOptionAsFloat(options, 'sectorAngle', 360)

I think 'alpha' should be calculated from start and stop angles.

aleung commented 6 years ago

@z3dev I was looking for such a function to create sector of a cylinder. But I couldn't find it from API document: https://github.com/jscad/csg.js/blob/master/docs/api.md

z3dev commented 4 years ago

Closing as this is duplicated In OpenJscad.org