mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-18 06:38:14 +01:00
31 lines
571 B
Markdown
31 lines
571 B
Markdown
|
# m_cumulate
|
||
|
|
||
|
The power of using transformation matrice is that you can cumulate all transformations in a matrix. This function multipies all transformation matrice.
|
||
|
|
||
|
**Since:** 1.1
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
- `matrice` : A list of 4x4 transformation matrice.
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
include <m_rotation.scad>;
|
||
|
include <m_scaling.scad>;
|
||
|
include <m_translation.scad>;
|
||
|
include <m_cumulate.scad>
|
||
|
|
||
|
m = m_cumulate([
|
||
|
m_translation([10, 20, 10]), m_scaling(2), m_rotation(60)]
|
||
|
);
|
||
|
|
||
|
multmatrix(m)
|
||
|
cube(1);
|
||
|
|
||
|
multmatrix(m)
|
||
|
sphere(1);
|
||
|
|
||
|
|
||
|
![m_cumulate](images/lib-m_cumulate-1.JPG)
|
||
|
|