简介
I was working on a project in OpenSCAD that needed smooth curves. I was excited to find some Bezier curve libraries (http://www.thingiverse.com/thing:8443), but as I used them I remembered why awkward thing about Bezier curves: they're hard to design with if you want precise control. You move a control point, and it pulls the curve one way, but it also affects other areas of the curve, so you have to nudge adjacent control points the other way to compensate, and then repeat forever. What I wanted was to tell OpenSCAD exactly where I wanted the curve to go, with a few points, and have it make a smooth curve passing between those points. That's a spline (https://en.wikipedia.org/wiki/Spline_(mathematics)). I couldn't find any spline libraries for OpenSCAD. So I made this one. The main module, spline.scad, is directly usable with no other dependencies. Grab the zip file instead if you want to look at the examples, as they're dependent on a couple of other modules. Functionality included: spline ribbons - a 2D splined line with a given width spline walls - like a ribbon, but extruded to a given height Several varieties of spline noodles - shapes extruded along a splined path, including ramen (circular cross-section), udon (square cross-section), and sausage (OK, that's not a noodle, but it's a ramen noodle with rounded ends), plus a hose which knocks out the center of a ramen noodle to a predefined width. Both a regular lathed spline and a lathed pot, which is handy for making a…
About this model
Splines for OpenSCAD is a 免费 3D model in the 其他 category, shared by the Cults3D community. You can download it for 3D printing and reuse it in your own projects under the terms of its original license.
File formats
- STL — The most common mesh format for 3D printing — ready to slice and print on almost any printer.
The files for this model are hosted on Cults3D. Use the button above to open the original page and download it.