Thingiverse
openscad screw threads with linear_extrude by speedymollusc
by Thingiverse
Last crawled date: 2 years, 12 months ago
It's always bugged me that you can't make screw threads easily with openscad's linear_extrude - and then I realized, on my bike ride home from work, that actually you can!
.
The main problem is that people usually think of a screw thread in terms of a vertical cross section, but openscad needs a horizontal cross-section for linear extrusion. But this isn't a fundamental limitation, it's a failure of imagination! So imagine cutting a screw in half with a hacksaw. Look at the shape the cut made. If you were to linearly extrude the resulting shape, with the correct twist, then you'd get the screw back, right? So we just have to figure out what the shape of that cross-section is.
.
Fortunately we can do that natively in openscad, basically by running the game backwards: make a doughnut the shape of the thread, cut it in a spiral, and look at it from above - that's your shape.
.
More rigorously: If P is the polygon you want to extrude as a thread, first of all rotationally extrude it, to get a P-shaped torus. Then intersect the torus with a helicoid of the same pitch as the threads you want (but the opposite orientation). A helicoid is what you get when you linear_extrude a thin stick, with a twist, so both of these shapes are easy to make in openscad. Now take the result of this intersection and project it onto the xy plane. This is the cross-section of the screw we were looking for. Nifty, yes?
.
I'm not saying it's efficient, or smart, or pretty, or better than any of the screw libraries - I'm just saying it's possible, and in fact conceptually simple.
.
However, I have one more observation: if you start with a polygonal thread shape and transform it as above, then the transformation I've described seems like it might just be a two-dimensional geometric inversion in some point. Under inversions, straight lines turn into circular arcs... so there's likely to be a way smarter way to do this transformation mathematically, without going through openscad's 3D system at all! Stay tuned...
.Edit: not really sure why thingview is showing a solid cylinder... but I did notice that openscad was doing something similar if I made any of the extrusions use too many slices. Like I said, it ain't pretty yet.
.
The main problem is that people usually think of a screw thread in terms of a vertical cross section, but openscad needs a horizontal cross-section for linear extrusion. But this isn't a fundamental limitation, it's a failure of imagination! So imagine cutting a screw in half with a hacksaw. Look at the shape the cut made. If you were to linearly extrude the resulting shape, with the correct twist, then you'd get the screw back, right? So we just have to figure out what the shape of that cross-section is.
.
Fortunately we can do that natively in openscad, basically by running the game backwards: make a doughnut the shape of the thread, cut it in a spiral, and look at it from above - that's your shape.
.
More rigorously: If P is the polygon you want to extrude as a thread, first of all rotationally extrude it, to get a P-shaped torus. Then intersect the torus with a helicoid of the same pitch as the threads you want (but the opposite orientation). A helicoid is what you get when you linear_extrude a thin stick, with a twist, so both of these shapes are easy to make in openscad. Now take the result of this intersection and project it onto the xy plane. This is the cross-section of the screw we were looking for. Nifty, yes?
.
I'm not saying it's efficient, or smart, or pretty, or better than any of the screw libraries - I'm just saying it's possible, and in fact conceptually simple.
.
However, I have one more observation: if you start with a polygonal thread shape and transform it as above, then the transformation I've described seems like it might just be a two-dimensional geometric inversion in some point. Under inversions, straight lines turn into circular arcs... so there's likely to be a way smarter way to do this transformation mathematically, without going through openscad's 3D system at all! Stay tuned...
.Edit: not really sure why thingview is showing a solid cylinder... but I did notice that openscad was doing something similar if I made any of the extrusions use too many slices. Like I said, it ain't pretty yet.
Similar models
thingiverse
free
Example OpenSCAD Screw Thread Transformation by Jamie_K
...axial one, fit for linear_extrude with twist. this is similar in spirit to speedymollusc's work, but solves it in...
thingiverse
free
ISO/UTS thread OpenSCAD library by RevK
...nk i am the only one that has constructed it in this way - some interesting different approaches to the same problem though. fun.
thingiverse
free
Extrusion extruder screw cut in half by Zapins
...oned the original screw into 7 parts and then cut them in half down the axis so that people have more options to print the screw.
thingiverse
free
Parametric Magic Wand by laird
...ty nifty, if i say so myself.
i haven't printed it yet. (waiting for replicator....). when i print one, i'll update here.
thingiverse
free
Linear Extrude with Twist and Scale as interpolated functions by paucoma
... follow a function. it is a piecewise union of linear_extrudes. the example uses a sine function as a scaling and twist function.
thingiverse
free
Thread parametric by eavf
...d to my needs. and if you want som i have find a library for threads downloadable on the http://dkprojects.net/openscad-threads/.
cults
free
Self-Intersecting Torus with Twist
... little more complicated because it has a twist in it as it bends.
i hope this looks cool when i set up to film like a zoetrope.
thingiverse
free
Parametric Helical Coil (Spring) by thehans
... result looks pretty good.
it generates very quickly even at high detail, though you may run out of memory if detail is too high!
thingiverse
free
Customizable Stackable Magic Wand - fixed by laird
...d tweaked so cross-section view is rendered for the 'stacks' but full parts are rendered for plates and individual parts.
thingiverse
free
Linear Extrude with Twist as an interpolated function by paucoma
...he example uses a sine function as a twisting function. scaling by a scalar is incorporated and can also be passed to the module.
Speedymollusc
thingiverse
free
Levitov Block by speedymollusc
...l of algebraic combinatorics vol 1, #2, pp. 111-132 and vol 1, #3, pp 219-234; preprint at http://arxiv.org/pdf/math.co/9201305).
thingiverse
free
Child powered marble lift by speedymollusc
...and i guess i ought to regenerate the stl after i do that...
edit: added a top piece; moved everything to positive z coordinates.
thingiverse
free
Marble Run adapter for Ikea Malm dresser by speedymollusc
...esser.
edit: design, test, iterate! made a couple of small tweaks. some photos of the previous version, sorry for the low res.
thingiverse
free
Example OpenSCAD Screw Thread Transformation by Jamie_K
...openscad screw thread transformation by jamie_k thingiverse inspired by speedymollusc#39;s openscad screw threads, this is an example function for...
thingiverse
free
My_Heart_Threads by ArnoldsThingys
...// response to openscad screw threads with linear_extrude by speedymollusc // for openscad coders. // a slice through a...
thingiverse
free
Phase fixed to a Phase by shivinteger
...[0] thing url : http://www.thingiverse.com/thing:399447 [0] thing author : speedymollusc [0] thing licence : creative commons - attribution [1]...
thingiverse
free
Day on a small Replacement by shivinteger
...[5] thing url : http://www.thingiverse.com/thing:399447 [5] thing author : speedymollusc [5] thing licence : creative commons - attribution [6]...
thingiverse
free
Fine, Turret Block by shivinteger
...[5] thing url : http://www.thingiverse.com/thing:399447 [5] thing author : speedymollusc [5] thing licence : creative commons - attribution [6]...
Openscad
thingiverse
free
OpenSCAD sphere
...openscad sphere
thingiverse
basic project for openscad.
thingiverse
free
Openscad Football by KySyth
...openscad football by kysyth
thingiverse
openscad not tested
thingiverse
free
Openscad Apple by KySyth
...openscad apple by kysyth
thingiverse
openscad apple = not tested
thingiverse
free
Plugs with openscad by benengel
...plugs with openscad by benengel
thingiverse
plugs with openscad and fontawesome
thingiverse
free
Openscad spirals by mafmuf
...openscad spirals by mafmuf
thingiverse
just fooling around with openscad.
thingiverse
free
Practice on OpenScad by ajensen906
...practice on openscad by ajensen906
thingiverse
a very crude practice on openscad
thingiverse
free
Batteries in OpenSCAD by roman_hegglin
...batteries in openscad by roman_hegglin
thingiverse
common batteries as modules for openscad.
thingiverse
free
OpenScad Propeller by KySyth
...se
trying to make a propeller with openscad = not tested
this is some of the results
added the openscad file but still need work
thingiverse
free
Openscad Cloud by Twanne
...openscad cloud by twanne
thingiverse
openscad cloud.
size can be adjusted
thingiverse
free
Geomag for OpenScad by vicnet
...geomag for openscad by vicnet
thingiverse
openscad file to design geomag things.
Linear
3ddd
$1
Linear Diffusers
...linear diffusers
3ddd
диффузор
set of linear diffusers for ceiling.
design_connected
$27
Linear Sofa
...linear sofa
designconnected
scp linear sofa computer generated 3d model.
design_connected
$18
Atlantis linear
...atlantis linear
designconnected
terzani atlantis linear pendant lights computer generated 3d model. designed by barlas baylar.
3d_export
$5
light linear unit
...light linear unit
3dexport
light linear unit
turbosquid
$5
Linear Actuator
...
royalty free 3d model linear actuator for download as blend on turbosquid: 3d models for games, architecture, videos. (1589061)
turbosquid
$29
Linear panel
...oyalty free 3d model linear panel for download as max and obj on turbosquid: 3d models for games, architecture, videos. (1391254)
turbosquid
$12
Linear Chandelier
...y free 3d model linear chandelier for download as max and obj on turbosquid: 3d models for games, architecture, videos. (1574289)
turbosquid
$10
Grohe Lineare
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$10
Linear Axis
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_export
$5
Linear Unit 3D Model
...linear unit 3d model
3dexport
linear unit force torque velocity
linear unit 3d model fau 71218 3dexport
Extrude
3ddd
$1
Extruded Chair
...extruded chair
3ddd
extruded , tom dixon
inspired by tom dixon extruded chair
turbosquid
$15
Extruded Table
... extruded table for download as blend, dae, fbx, obj, and stl on turbosquid: 3d models for games, architecture, videos. (1634137)
turbosquid
$2
3D Printer Extruder
...d
royalty free 3d model 3d printer extruder for download as on turbosquid: 3d models for games, architecture, videos. (1537359)
turbosquid
$1
Zombie extruded text
...oyalty free 3d model zombie extruded text for download as obj on turbosquid: 3d models for games, architecture, videos. (1322198)
turbosquid
$4
Extruder conical screw
...el extruder conical screw for download as sldpr, ige, and stl on turbosquid: 3d models for games, architecture, videos. (1524433)
turbosquid
$50
3d PRINTER - Extruder
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$15
Extruded Table 2
...xtruded table 2 for download as blend, dae, fbx, obj, and stl on turbosquid: 3d models for games, architecture, videos. (1621846)
turbosquid
$10
Maya Extrude Tool
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_export
$5
world earth extrude map
...world earth extrude map
3dexport
3ddd
$1
Simply Elegant Extruded Tree Coffee Table Design
...ble by link studios. the silhouette of a tree is visible at one angle, extruded from the surface to create the support structure.
Threads
3d_export
$5
threaded handle
...threaded handle
3dexport
threaded handle
turbosquid
free
threaded
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_ocean
$5
Tangle of thread
... tangle thread triangles – 36 in one strand in scene 300 thread includes materials includes 3 colors tangle thread in psd for ...
3d_export
$5
threaded lock handle
...threaded lock handle
3dexport
threaded lock handle
3d_export
$5
threaded machine handle
...threaded machine handle
3dexport
threaded machine handle
3d_export
$5
threaded door knob
...threaded door knob
3dexport
threaded door knob
3d_export
$5
threaded rope ring
...threaded rope ring
3dexport
threaded rope ring
3d_export
$5
threaded door knob
...threaded door knob
3dexport
threaded door knob
turbosquid
$56
Threaded Inserts
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$10
Thread Lamp
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
Screw
3d_export
$5
screw
...screw
3dexport
screw
turbosquid
$29
Screw driver and screws
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_ocean
$2
Screw
... steel twist wood screw
screw 3d model in 2 different materials real world scale rendered with mental ray file formats: .max .obj
3d_ocean
$4
Screw
...n
3d bolt male mechanic metal nut parts prop propeller schraube schraubenmutter screw steel twist
screw 3d model, clean modeling.
turbosquid
$2
screw
...crew
turbosquid
royalty free 3d model screw for download as on turbosquid: 3d models for games, architecture, videos. (1198271)
turbosquid
free
Screw
...screw
turbosquid
free 3d model screw for download as obj on turbosquid: 3d models for games, architecture, videos. (1240851)
3d_ocean
$2
Frame Screw
...frame screw
3docean
construction screw
a frame screw and plug.
turbosquid
$27
screw
...w
turbosquid
royalty free 3d model screw for download as max on turbosquid: 3d models for games, architecture, videos. (1334064)
turbosquid
$20
SCREW
...
turbosquid
royalty free 3d model screw for download as sldas on turbosquid: 3d models for games, architecture, videos. (729733)
turbosquid
$1
Screws
...
turbosquid
royalty free 3d model screws for download as max on turbosquid: 3d models for games, architecture, videos. (1640360)