Skip to content

Sweeping out OpenSCAD/STL curves with a Python script

?
Creation's quality: 0.0/5 (0 votes)
Evaluation of members on the printability, utility, level of detail, etc.
  • 867 views
  • 1 like
  • 18 downloads

3D model description

This is an example showing how one can generate knots using mathematical formulae with a Python script by sweeping a shape (convex or not) along a curve (closed or not).

The sweep.py script by default generates both an STL set of Borromean rings and an OpenSCAD set. You can edit it to change colors, formulas, etc. Additional examples are also generated, such as screw thread.

The OpenSCAD output is quite a bit better, in that it will still work if your sizes are such that have self-intersections--the STL generator isn't smart enough to do anything about that.

The Python code has a github repository and can be directly downloaded here.

  • 3D file format: STL
  • Publication date: 2018/10/09 at 13:50

Tags

Creator

License

CC BY


Best sellers of the category Various


Add a comment


Would you like to support Cults?

You like Cults and you want to help us continue the adventure independently? Please note that we are a small team of 3 people, therefore it is very simple to support us to maintain the activity and create future developments. Here are 4 solutions accessible to all:

  • ADVERTISING: Disable your AdBlock banner blocker and click on our banner ads.

  • AFFILIATION: Make your purchases online by clicking on our affiliate links here Amazon, Gearbest or Aliexpress.

  • DONATE: If you want, you can make a donation via PayPal here.

  • WORD OF MOUTH: Invite your friends to come, discover the platform and the magnificent 3D files shared by the community!