Integrating with BOSL2 & migrating from threads.scad #2
scottconverse
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
A place to share integration recipes and migration tips. Starter notes below —
please add yours.
Coexisting with other libraries
Every public symbol is namespaced
tq_*, so tq-threads coexists with BOSL2,NopSCADlib, and friends without clashes. Use the other library for shapes,
attachments, and rounding; use tq-threads for the actual printable threads.
Migrating from Dan Kirshner / rcolyer
threads.scadtq-threads is a clean-room feature equivalent (different code + API):
metric_thread(d,p,l)tq_thread(d=d, pitch=p, length=l)english_thread(in,tpi,l)tq_thread_tpi(d=tq_in(in), tpi=tpi, length=tq_in(l))...internal=truetq_thread(...,internal=true)/tq_thread_cutter(...)ScrewHole(...)difference(){ part(); tq_threaded_hole(d,pitch,len); }RodStart/RodEndtq_rod_start / tq_rod_endn_startsstarts=· left-hand →hand=leftFull table + parameters in the MANUAL.
v0.6 profile-control notes
The compatibility default is still
profile=flatwith the ISO/UN basictruncations. New controls are optional and forward through
tq_thread_preset()and
tq_thread_tpi():side_angle=30is a 60-degree included V using the half-angle-from-perpendicularconvention. Square, rectangular, and groove profiles are generic printable
forms, not standards-certified ACME/trapezoidal/buttress replacements.
TinkerQuarry
MIT → GPL-2.0 compatible; vendor
tq_threads.scadinto the engine'slibrary/and call presets by name from generated
.scad.Share your setup: which libraries do you pair tq-threads with, and what
migration gotchas did you hit?
All reactions