replicad icon indicating copy to clipboard operation
replicad copied to clipboard

Interest in using SolveSpaces solver?

Open vespakoen opened this issue 2 years ago • 5 comments

I just uploaded JS / WASM bindings for SolveSpace in my PR.

This might be fun to play with over here?

https://github.com/solvespace/solvespace/pull/1343#issuecomment-1437618758

The API will probably change a bit before it gets merged, but i'd be interested to hear your thought ;)

vespakoen avatar Feb 20 '23 22:02 vespakoen

I just uploaded JS / WASM bindings for SolveSpace in my PR.

This might be fun to play with over here?

solvespace/solvespace#1343 (comment)

The API will probably change a bit before it gets merged, but i'd be interested to hear your thought ;)

Hi @vespakoen I am quite intertested in solvespace wasm, since opencascade is too heavy for me.

However, I did some investigation on solvespace compilation on wasm, didn't find any code for it.

Would you please let me know where to find related resources? Thanks

nine-fox avatar Mar 23 '23 12:03 nine-fox

There is an experimental WASM version hosted on NPM (https://www.npmjs.com/package/slvs?activeTab=versions), try version 3.1.0-dev.22, it might work for you. The code is in the linked pull request, see: https://github.com/solvespace/solvespace/pull/1343/files#diff-19f291f169fa52288f5bb45776872abd63c7f575975d862eefa3243ca43acece for the bindings for example.

vespakoen avatar Mar 23 '23 12:03 vespakoen

Excellent! So how would we use this in Replicad? Pipe its output to the Solid.translate method?

NodeGuy avatar Apr 02 '23 21:04 NodeGuy

@nine-fox take a look at Three.cad. That project is using SolveSpace.

hernanponcetta avatar Apr 06 '23 08:04 hernanponcetta

@nine-fox take a look at Three.cad. That project is using SolveSpace.

hi @hernanponcetta Thanks a lot for your information! That helps. After investigation, I just found three.cad can not export STEP yet. Since support STEP is a MUST option in my case, do you know exporting STEP can be supported by solvespace wasm? Thanks :)

nine-fox avatar Apr 06 '23 09:04 nine-fox