CascadeStudio icon indicating copy to clipboard operation
CascadeStudio copied to clipboard

Execution via node.js, is it possible?

Open brad-jones opened this issue 4 years ago • 3 comments

This might already be possible but I couldn't see any docs or obvious entrypoint CLI tool to do this? Can WASM be used with node???

Say I have a JS/TS script that defines my model can I use node.js (not the browser) to then export an STL/STEP/SVG/etc file? Similar to the example given by CadQuery https://cadquery.readthedocs.io/en/latest/installation.html#test-your-installation

I like the idea of using say VsCode on one screen to edit the JS/TS script and then having a simple STL viewer open on another screen watching for changes. This is similar to how I can use both OpenSCAD and CadQuery.

Other use cases would be the ability to have a CI/CD pipeline that say automatically generates various exports like an STL, 2d plans, bill of materials, slices it into gcode if your 3d printing & then creates a new github release with such assets just like you would if it were a traditional software package that your pipeline was compiling & releasing.

brad-jones avatar Dec 10 '20 10:12 brad-jones

I believe node.js can execute WebAssembly, but I've never used node.js so I wouldn't know where to start 🙃

A barebones cli version of CascadeStudio that just uses the StandardLibrary and the WASM to generate .stl's would be interesting though...

zalo avatar Dec 18 '20 08:12 zalo

I think VS-code extension and generalising this all a bit more, node etc would be awesome.

I'm tempted to attempt so of this. I can't in the immediate future.

Irev-Dev avatar Jan 06 '21 08:01 Irev-Dev

Any news for that ?

I'm trying to use Cascade Studio as a VueJS component. But it's complicated to export main elements and reuse them in VueJS

gabrielgriesser avatar Dec 06 '22 15:12 gabrielgriesser