Slicer Discord
surf2solid.py – 3D printable model from Thingiverse Thingiverse

surf2solid.py

by mrule
9 Downloads
23 Likes
0 Makes
Go to Model
A quick and dirty sketch of a python clone of http://www.thingiverse.com/thing:6955

Takes a function of x,y,r, and t (theta, in radians), plots it, returns it as a solid which it spits to stdout, or writes to a .scad or .stl file, depending on usage. Arguments are set toward the top of the scrip. The function is specified as a string. This script requires numpy. Comments need improvement.

Python seems popular, so I'm hoping this will be stolen and modified.

There are probably still bugs in the mesh generation, I haven't even tried slicing the test object. If you spot a fix, tell me (or post a fix as your own thing).

update : fixed generation of base polygons
update : fixed normal orientation for .scad and .stl output
update : fixed scaling issues, now scales part to the intended dimensions
update : fixed some command line argument parsing
update : OpenSCAD doesn't like the .stl output, but the .scad script output seems ok. Probably some problem with specifying the norm
Source
Thingiverse
What you need to print this: Beginner Low confidence
Single piece
Supports 1/3
Assembly 0/3
Settings 1/3
Bed size 0/3
Post-process 0/3
Printer
FDM / FFF
File format
STL
Material
TPU
Software
Cura, PrusaSlicer, or similar
No ratings yet
No comments yet – be the first!

Similar Models

6 Suggestions
Feed Blog Slicer Cost Calculator Image Search Submit Kontakt Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Add to Collection