joostn / OpenJsCad

3D solid CAD using only Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Node.js

RaphiePS opened this issue · comments

It'd be incredibly useful if this could be refactored into a node module. Then one could render on the server.

This should be trivial, probably adding this to CSG.js should do the trick:

exports.CSG=CSG;
exports.CAG=CAG;

You would need to launch CSG operations in a web worker though since they take a while to complete.

A bower module could be useful too!

@RaphiePS @matiasinsaurralde This is done. Please see https://github.com/jscad/csg.js as part of the new organization for OpenJSCAD libraries.

I will close this issue in 30 days.