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

Replace Orthonormalbasis with toXYPlaneTransforms #160

Closed pentacular closed 5 years ago

pentacular commented 5 years ago

Orthonormalbasis was only really used for rotating points into an XY plane with a constant Z, and back.

This adds equivalent functionality to plane, producing two matrices -- one for conversion to an XY plane, the other for conversion back.

Incidentally fixes poly3 math imports.