Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Interest in using SolveSpaces solver? #72

Open
vespakoen opened this issue Feb 20, 2023 · 5 comments
Open

Interest in using SolveSpaces solver? #72

vespakoen opened this issue Feb 20, 2023 · 5 comments

Comments

@vespakoen
Copy link

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 ;)

@nine-fox
Copy link

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

@vespakoen
Copy link
Author

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.

@NodeGuy
Copy link

NodeGuy commented Apr 2, 2023

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

@hernanponcetta
Copy link

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

@nine-fox
Copy link

nine-fox commented Apr 6, 2023

@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 :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants