Thingiverse
Some Matrix Maths for OpenScad
por WilliamAAdams
28
Descargas
29
Likes
0
Makes
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 usi
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 usi
¿Has impreso este modelo? Inicia sesión y comparte tu make.
Inicia sesión para dejar un comentario
Iniciar sesiónAún no hay comentarios – ¡sé el primero!