Some Matrix Maths for OpenScad (Q48015)

From Library of Open Source Hardware
Jump to navigation Jump to search
No description defined
Language Label Description Also known as
English
Some Matrix Maths for OpenScad
No description defined

    Statements

    en
    0 references
    www.thingiverse.com
    0 references
    https://spdx.org/licenses/CC0-1.0
    0 references
    1.0.0
    0 references
    0 references
    Sometimes I find myself getting lost in the declarative transform world of OpenScad... translate() rotate() scale() rotate() . . . Then I smacked my head and discovered 'multmatrix()' I know you, as I, have often wondered, 'what is the multmatrix?' This thing is the answer. Basically a bunch more matrix routines to make life in OpenScad easier. Really I'm releasing this particular bit of work because I want to write an expose on declarative vs imperative programming and how to mix the two for 3D design goodness. What you'll find in this package are functions such as: vec4_mult_mat4(v,m) mat4_mult_mat4(m1,m2) mat4_transpose(m) transform_scale(xyz) etc. The devotees of OpenScad might find the gem known as 'ccerp' and begin to wonder what kind of crack I've been smokin on this father's day. But, that's for another post. The bottom line with this is, you can do your own fancy matrix transforms, and apply them wherever and whenever you like using the 'multmatrix()' module. Most people will scratch their heads in wonderment. Some might start bouncing down the halls with glee. The rest will just click on the next Colbert mash up.
    0 references
    auto
    0 references
    WilliamAAdams
    0 references
    thingiverse.com
    0 references