jscad / csg.js

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

V2 : API Suggestions #193

Closed z3dev closed 4 years ago

z3dev commented 4 years ago

geom3

primitives

z3dev commented 4 years ago

Internally, V2 should never use the general indexes of math, geometry, operations, etc. These create huge circular chains which cannot be handled properly, even by NODE.

const { sphere } = require('../../primitives') // BAD practice

Internally, the EXACT function should be required.

const sphere = require('../../primitives/ellipsoid').sphere // GOOD practice

z3dev commented 4 years ago

Require statements updated in PR

z3dev commented 4 years ago

Colors parameter added in PR for V2.

z3dev commented 4 years ago

Invert added to geom3 in V2