Knot-style Parametric Function Script ( Python ) (Q43923)

From Library of Open Source Hardware
Revision as of 15:32, 25 February 2022 by Aisberg (talk | contribs) (‎Added [en] label: Knot-style Parametric Function Script ( Python ))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
No description defined
Language Label Description Also known as
English
Knot-style Parametric Function Script ( Python )
No description defined

    Statements

    mrule
    0 references
    1.0.0
    0 references
    0 references
    en
    0 references
    In my ongoing quest to eliminate or supersede all things Matlab, I present a functional solution to the problem of extruding along arbitrary contours, written in python. This is a reaction to http://www.thingiverse.com/thing:7080, itself a derivative of http://www.thingiverse.com/thing:6923. Credit to both these authors for the concept and motivation. Parameters are specified at the top of the script. A closed curve in 3D is specified as f:t→(x,y,z) a parametric function of t. A closed curve in 2D is specified as f:s→(x,y) and is used as the cross-section to extrude along the 3D curve. Bonus : If you manually specify the "crosssection" matrix, which is a lost of [x,y] points around the perimeter, you can extrude arbitrary cross-sections. download, cut, edit, steal, modify, repost, use, go. update : I added knot.py, which simply explicitly defines the knot equations at the top and adds a couple integer parameters, similar too http://www.thingiverse.com/thing:6923.
    0 references
    https://spdx.org/licenses/LGPL-3.0-or-later
    0 references
    thingiverse.com
    0 references
    www.thingiverse.com
    0 references
    auto
    0 references