Cylindrical Functions Script (Q42855)

From Library of Open Source Hardware
Jump to navigation Jump to search
No description defined
Language Label Description Also known as
English
Cylindrical Functions Script
No description defined

    Statements

    mrule
    0 references
    auto
    0 references
    https://spdx.org/licenses/LGPL-3.0-or-later
    0 references
    en
    0 references
    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.
    0 references
    0 references
    1.0.0
    0 references
    www.thingiverse.com
    0 references
    thingiverse.com
    0 references