Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

OpenScad as library #5121

Closed
rafal-tarnow opened this issue May 3, 2024 · 3 comments
Closed

OpenScad as library #5121

rafal-tarnow opened this issue May 3, 2024 · 3 comments

Comments

@rafal-tarnow
Copy link

I think it would be an interesting idea to transform OpenScad into a library and separate the GUI from the application logic. Currently, I'm working on a 3D application where I would need a library that would allow me to easily build 3D models on the fly. If OpenScad could be compiled into a library, it would be a great solution for me. I could then use my own application interface, load scripts from it, compile them using OpenScad, retrieve geometries, and also provide error messages to the user. Essentially, I think I could achieve this by running OpenScad as a process and executing these tasks using CLI. However, this doesn't seem like a very elegant solution to me, and I'm not sure about handling compilation errors, or how useful the --info option would be.

@rafal-tarnow
Copy link
Author

I started browsing the CMake project, I'm not sure if the option option(BUILD_SHARED_LIBS "Build shared library" OFF) might be what I'm looking for?

@t-paul
Copy link
Member

t-paul commented May 3, 2024

Duplicate of #193, also not likely to happen unless someone can really dedicate a lot of time to that topic. A minimal very high level version would be very useful for WASM too.

@t-paul t-paul closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
@t-paul
Copy link
Member

t-paul commented May 3, 2024

If you have dedicated plans for an application, feel free to join the OpenSCAD IRC channel for some developer discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants