[OpenSCAD] threads

Chow Loong Jin hyperair at debian.org
Fri Apr 24 00:13:02 EDT 2015

On Thu, Apr 23, 2015 at 08:16:08AM -0700, Yvette S. Hirth, CCP, CDP wrote:
> hi all,
> i'm trying to "cut" threads in openSCAD.  i'm using the threads.scad module
> i found on thingiverse, like so:
> use <threads.scad>;
> ...
> english_thread(diameter=(632ScrewRadius*2),
> threads_per_inch=32,
> length=(coverDepth+coverThickness),
> internal=true,
> $fn=30);
> gosh, is it *slow*!  i played a game of freecell and the progress meter
> hasn't budged from "just started".  and now i've finished typing this email
> and still no progress.
> i put cylinders in the code to check for positioning and depth; once i got
> those right, i commented out ONLY the first cylinder and inserted just the
> code for the one thread above.  my res time (F6) was 45sec; now it could be
> hours.  from *one* thread - and i have four to gen before slicing.
> i'm sure the lack of progress is due to threads.scad creating a bazillion
> polygons.  i'm not trying to complain; i'm just trying to get my stuff
> printed.
> is there any alternative to threads.scad?

Use OpenSCAD 2015.03 and threads.scad from MCAD's dev branch. It's an updated
version of the threads.scad you're using. Uses list comprehension, and sweep()
for generalized extrusion of the threads, and is much faster than the
implementation you're using.

Kind regards,
Loong Jin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20150424/276e677d/attachment.asc>

More information about the Discuss mailing list