Cylindrical Functions Script

por mrule

Archivos imprimibles (10)

  • stl

    a.stl

    178 Ko · 2 188 descargas

    Descargar
  • stl

    b.stl

    9.6 Mo · 2 241 descargas

    Descargar
  • stl

    d.stl

    2.5 Mo · 2 191 descargas

    Descargar
  • stl

    f.stl

    4 Mo · 2 139 descargas

    Descargar
  • stl

    vase3.stl

    170 Ko · 2 256 descargas

    Descargar
  • stl

    vase2.stl

    156 Ko · 2 139 descargas

    Descargar
  • stl

    foo6.stl

    31 Mo · 2 222 descargas

    Descargar
  • stl

    foo8.stl

    12.5 Mo · 2 171 descargas

    Descargar
  • stl

    foo1.stl

    6.9 Mo · 2 199 descargas

    Descargar
  • stl

    foo3.stl

    15.5 Mo · 2 161 descargas

    Descargar

Descripción

This is a python script for generating cylindrical coordinate functions as OpenSCAD scripts.

Specify height, radial resolution, vertical resolution, wall thickness, and a twist parameter at the top of the python script.

Specify radius as a function of theta and height in a function called "fun" also in the script.

The archive contains a few files :
-- cylindrical.py is the script
-- spin.sh is an example of using inotify to automatically regenerate the .scad file every time the .py script is updates.
-- various .stl outputs and some .gcode

This script solves the problem of :
-- generating a surface from a cylindrical function
-- generating a constant-thickness wall for most reasonable curves
-- a polygon function for plotting polygons in polar coordinates ( can be used to interpolate between polygons or other shapes )

This script is good for :
-- interpolating between different shapes along the cylinder with rotation
-- generating procedurally generated forms more quickly than composition in OpenSCAD

The script can now write STLs directly and can be configured to output solid objects or objects with a solid bottom. If a .stl filename is given as the first command line argument, the script will save to that file, otherwise it will print to standard out. Python also attempts to automatically call meshlab if it is installed to display the rendered result. If a .scad filename is given as the command line argument, an OpenSCAD script will be written and meshlab will not be launched.

Etiquetas