discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

library for ACME pipe threads?

JD
Jerry Davis
Fri, Jul 1, 2016 7:51 PM

Anyone know of a library and sample call to an ACME pipe fitting?
Also, standard NPT would be good too.

If I have a bolt, I can do a difference to get the female part.

I have done a cursory look at openscad libraries that come with it, I
haven't updated in a LONG time. But it is hard to make sense of what and
how to call some of it.

Jerry

--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer

The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".
- Isaac. Asimov

Anyone know of a library and sample call to an ACME pipe fitting? Also, standard NPT would be good too. If I have a bolt, I can do a difference to get the female part. I have done a cursory look at openscad libraries that come with it, I haven't updated in a LONG time. But it is hard to make sense of what and how to call some of it. Jerry -- Extra Ham Operator: K7AZJ Registered Linux User: 275424 Raspberry Pi and Arduino developer *The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov
JL
Jean-Paul Louis
Sat, Jul 2, 2016 12:56 AM

Jerry,

The screw thread for a nut is not exactly the difference.
You need some play to be able to screw and unscrew.
check any book about threads and you will get the right info.

Just my $0.02,
Jean-Paul
N1JPL

On Jul 1, 2016, at 3:51 PM, Jerry Davis jdawgaz@gmail.com wrote:

Anyone know of a library and sample call to an ACME pipe fitting?
Also, standard NPT would be good too.

If I have a bolt, I can do a difference to get the female part.

I have done a cursory look at openscad libraries that come with it, I haven't updated in a LONG time. But it is hard to make sense of what and how to call some of it.

Jerry

--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer

The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".

  • Isaac. Asimov

OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Jerry, The screw thread for a nut is not exactly the difference. You need some play to be able to screw and unscrew. check any book about threads and you will get the right info. Just my $0.02, Jean-Paul N1JPL > On Jul 1, 2016, at 3:51 PM, Jerry Davis <jdawgaz@gmail.com> wrote: > > Anyone know of a library and sample call to an ACME pipe fitting? > Also, standard NPT would be good too. > > If I have a bolt, I can do a difference to get the female part. > > I have done a cursory look at openscad libraries that come with it, I haven't updated in a LONG time. But it is hard to make sense of what and how to call some of it. > > Jerry > > -- > Extra Ham Operator: K7AZJ > Registered Linux User: 275424 > Raspberry Pi and Arduino developer > > The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...". > - Isaac. Asimov > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
P
Parkinbot
Sat, Jul 2, 2016 2:34 PM

I guess you are able to adapt the following code to your needs. It is
straight forward, but uses itself two libraries, which you have to download.
http://forum.openscad.org/file/n17862/ACME.png

use <skin.scad>      //
https://github.com/openscad/list-comprehension-demos/blob/master/skin.scad
use <naca_sweep.scad> // http://www.thingiverse.com/thing:900137

radius = 16;  // outer radius
threads = 10; // number of threads
helices = 1;  // number of windings
angle = 29;  // open angle
steps = 50;  // resolution

threading(radius, threads, helices, angle, steps);

module threading(r, t, h, a, s)
{  // tricky: we glue two 180° pieces together to get a proper manifold
skin(gen_dat(PI/2h, 180, s, a));  // half screw
rotate([0, 0, 180]) translate([0, 0, PI/2
h])
skin(gen_dat(PI/2*h, 180, s, a));  // half screw
}

function gen_dat(h, a, steps, angle) =
let(ang = a>360?360:a, bar = R_(180, -90, 0, Ty_(-radius+1,
vec3D(Rack(threads, angle)))))
[for (i=[0:steps]) Tz_(ih/steps, Rz_(iang/steps, bar))];

function Rack(n=2, angle) =
concat([[0, 2]], [for (i=[0:n-1], j=[0:3])
let(t = [ [0, 1], [2tan(angle/2), -1], [PI/2, -1], [2tan(angle/2)+PI/2,
1]])
[t[j][0]+iPI, t[j][1]]], [[2tan(angle)+PI/2+(n-1)*PI, 2]]);

--
View this message in context: http://forum.openscad.org/library-for-ACME-pipe-threads-tp17851p17862.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I guess you are able to adapt the following code to your needs. It is straight forward, but uses itself two libraries, which you have to download. <http://forum.openscad.org/file/n17862/ACME.png> use <skin.scad> // https://github.com/openscad/list-comprehension-demos/blob/master/skin.scad use <naca_sweep.scad> // http://www.thingiverse.com/thing:900137 radius = 16; // outer radius threads = 10; // number of threads helices = 1; // number of windings angle = 29; // open angle steps = 50; // resolution threading(radius, threads, helices, angle, steps); module threading(r, t, h, a, s) { // tricky: we glue two 180° pieces together to get a proper manifold skin(gen_dat(PI/2*h, 180, s, a)); // half screw rotate([0, 0, 180]) translate([0, 0, PI/2*h]) skin(gen_dat(PI/2*h, 180, s, a)); // half screw } function gen_dat(h, a, steps, angle) = let(ang = a>360?360:a, bar = R_(180, -90, 0, Ty_(-radius+1, vec3D(Rack(threads, angle))))) [for (i=[0:steps]) Tz_(i*h/steps, Rz_(i*ang/steps, bar))]; function Rack(n=2, angle) = concat([[0, 2]], [for (i=[0:n-1], j=[0:3]) let(t = [ [0, 1], [2*tan(angle/2), -1], [PI/2, -1], [2*tan(angle/2)+PI/2, 1]]) [t[j][0]+i*PI, t[j][1]]], [[2*tan(angle)+PI/2+(n-1)*PI, 2]]); -- View this message in context: http://forum.openscad.org/library-for-ACME-pipe-threads-tp17851p17862.html Sent from the OpenSCAD mailing list archive at Nabble.com.