this post was submitted on 21 May 2024
2 points (100.0% liked)

OpenSCAD

52 readers
1 users here now

A community for The Programmers Solid CAD Modeller, OpenSCAD.

founded 2 years ago
MODERATORS
 

I want to post my design on Printables but my scad file uses a threads library found here. Should I just add a comment above the "use" statement with a link on where to get the library?

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 5 months ago* (last edited 5 months ago)

There's a few ways to do this. Which one is "best" for you depends on how technical you expect your audience to be.

The easiest way for you is probably to just tell your users that you use some or another library and that they need to have it installed.

The easiest way for your users is to copy/paste the parts of the library that you use into your code. The threads library you linked is CC0 so you can do that. This also futureproofs your design against changes that break this library and against this library becoming unavailable. (Normally copy/pasting from libraries is discouraged as this futureproofs designs against improvements in the library as well, but IMHO certain OpenSCAD libraries should be considered an exception to this rule. If a library renders the shapes that you want fast enough to make improvements irrelevant, there's no need to keep the library external.)