1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-08-31 08:45:34 +02:00

User space rotate added to get around OpenScad's rotate using innacurate trig functions.

Eveything changes a little bit!
This commit is contained in:
Chris Palmer
2016-01-08 16:15:42 +00:00
parent bb95dcc5cb
commit c970a3b6aa
90 changed files with 46212 additions and 65100 deletions

View File

@@ -27,6 +27,22 @@ $fs = 0.5;
function sqr(x) = x * x; // shortcut
module rotate(a)
{
cx = cos(a[0]);
cy = cos(a[1]);
cz = cos(a[2]);
sx = sin(a[0]);
sy = sin(a[1]);
sz = sin(a[2]);
multmatrix([
[ cy * cz, cz * sx * sy - cx * sz, cx * cz * sy + sx * sz, 0],
[ cy * sz, cx * cz + sx * sy * sz,-cz * sx + cx * sy * sz, 0],
[-sy, cy * sx, cx * cy, 0],
[ 0, 0, 0, 1]
]) children();
}
cnc_tool_dia = 2.4;
layer_height = 0.4;
filament_width = layer_height * 1.5;