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

How do I make and reuse parts? #389

Open
FlyMyPG opened this issue May 6, 2021 · 2 comments
Open

How do I make and reuse parts? #389

FlyMyPG opened this issue May 6, 2021 · 2 comments

Comments

@FlyMyPG
Copy link

FlyMyPG commented May 6, 2021

It may be implicit somewhere, but I found no explicit mention or example showing how to make a "thing" in a file, then reuse it both in that file and in other files.

For example, a library of standard bolts and nuts, screws, nails, etc. Or a parametric rafter for making a roof on a house. And so on.

If this capability exists, please expose it more prominently.

@sorki
Copy link
Contributor

sorki commented May 13, 2021

Similar to OpenSCAD, implicits SCAD engine supports include (and use), see e.g. https://github.com/colah/ImplicitCAD/blob/master/Examples/example23.escad and you could possibly reuse some OpenSCAD libraries like MCAD (not everything is going to work due to hull).

When using Haskell eDSL you just use Haskells import functionality.

@thiskappaisgrey
Copy link

Hi, I have a related question, is there a way to import OpenScad libraries(or import stuff writen in escad when using the Haskell eDSL? For example, I want to use these parts: https://github.com/nophead/NopSCADlib in a design.hs file, is that possible? I'm a haskell beginner, so an example would be helpful. Thank you so much!

Similar to OpenSCAD, implicits SCAD engine supports include (and use), see e.g. https://github.com/colah/ImplicitCAD/blob/master/Examples/example23.escad and you could possibly reuse some OpenSCAD libraries like MCAD (not everything is going to work due to hull).

When using Haskell eDSL you just use Haskells import functionality.

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

No branches or pull requests

3 participants