crmvilla.blogg.se

Openscad spiral
Openscad spiral







openscad spiral openscad spiral
  1. #Openscad spiral full#
  2. #Openscad spiral iso#

Here's how that shape stacks up into a screw thread, using 32 angular steps per full rotation: We get rectangular facets where the stacked polygon edges are parallel (like the inner and outer radius surfaces), and we'll also get triangles at the transitions between the different surfaces. Because this is an irregular shape, some polygon edges won't be parallel on each rotational step, so we won't end up with nice clean rectangular facets everywhere. The angular step size is equal to the angular step size used to generate the polygon shape, so that for each rotational increment, the polygon vertices are always vertically aligned. As these polygons stack vertically, they rotate by one angular step for each layer. Those two non-constant radius curves form the sloped faces of the threads.

  • Another non-constant radius curve at the bottom connects the left and right arcs.
  • A non-constant radius curve at the top connects the left and right arcs.
  • There's another circle arc on the left, intersecting x=−1.62 (0.38 from x=−2), with an arc radius equal to the screw's inner radius at the thread depth.
  • There's a small circle arc on the right, intersecting x=2, with an arc radius equal to the screw radius (2 mm for a 4 mm diameter screw).
  • If you look closely, however, you'll see it's made from four curves: That means I can define a dimensionless profile that defines a peak-to-peak pitch interval, with pitch ranging from 0 to 1, and thread depth ranging from -1 (inner diameter) to +1 (outer diameter). Regardless of the angle, the proportions shown in the figure still hold: The screw diameter is always the outer thread edge surface, which always has thickness \(P/8\), the inner diameter surface always has thickness \(P/4\), and the thread depth is always \(5H/8\).

    #Openscad spiral iso#

    When \(\theta=30^\circ\), the threads are ISO threads. Fortunately, the ISO standard defines the parameter \(H\) (and therefore thread depth) in this figure as a function of angle \(\theta\) and thread pitch \(P\):

    openscad spiral

    If the 3D printer doesn't work reliably for printing overhang slopes shallower than 45° (or if you're printing really large threads) it may be a good practice to increase the thread face angle from 30° to 45°. However, the approach to thread generation described here doesn't work well for horizontal thread face angles, as I explain near the end of this article. Even then, only one face of the worm gear thread is under load, so it can be printed face up with a 45° angle on the unloaded underside face of the thread. The primary exception that comes to mind would be a worm drive thread, which should have a nearly-flat thread face angle. At less than 30°, however, the slicer does start identifying overhang perimeters, but angles shallower than the ISO standard aren't needed for fitting threads to machine parts. In my case, using PrusaSlicer 2.1 with my Prusa i3 MK3S, the slicer doesn't identify any part of a standard ISO screw thread as an "overhang perimeter" so it should be OK as is for most modern printers. The traditional "45 degree rule" for 3D printing says to avoid overhangs less than 45° from horizontal. If the screw shaft is printed vertically, the 30° face angle may not work well, depending on your printer.









    Openscad spiral