Ir para conteúdo
3DFinder
Iniciar sesión

Estás en 3DFinder

Buscamos en Thingiverse, MakerWorld y Printables al mismo tiempo para darte lo mejor de cada una.

Buscar más como este
Modelo 3D surf2solid.py por mrule en Thingiverse

Descripción

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 normals.

Instrucciones

( for mac / linux, I don't know how python works on Windows ) I call it like so :

python surf2solid.py > test.stl
you can now also call it like :
python surf2solid.py test.stl
python surf2solid.py test.scad
if you changed permissions to executable ( chmod 777 surf2solid.py ) you can also :
./surf2solid.py output.stl
or if you rename to surf2solid and move it to /usr/bin ( or something else on your path :
surf2solid output.stl

Thingiverse

surf2solid.py

23
Me gusta
0
Descargas
9
Colecciones
Etiquetas
3D education experiment functions makerbot math parametric plot2print
Licencia GNU - GPL
Archivos (1)
test.stl 9.2 MB
Ver en Thingiverse (abre en nueva pestaña)

¿Te gusta este modelo? Crea una cuenta gratis para guardar tus favoritos y volver a ellos más tarde.

Crear cuenta