Sweeping out OpenSCAD/STL curves with a Python script

Sweeping out OpenSCAD/STL curves with a Python script

cults3d

Here's an example of how one can generate knots using mathematical formulae with a Python script by sweeping a shape, whether convex or not, along a curve, which can be either closed or open. The sweep.py script generates both an STL set of Borromean rings and an OpenSCAD set by default. You can easily edit it to change colors, formulas, and other parameters as needed. Additional examples are also generated, such as screw threads, with just a few modifications. The OpenSCAD output is significantly better in this regard, as it will still work even if your sizes result in self-intersections. In contrast, the STL generator isn't smart enough to handle such situations. You can access and download the Python code directly from its github repository.

Download Model from cults3d

With this file you will be able to print Sweeping out OpenSCAD/STL curves with a Python script with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Sweeping out OpenSCAD/STL curves with a Python script.