2010-07-26 00:57:42 -05:00
|
|
|
/*
|
|
|
|
* Basic units.
|
|
|
|
*
|
|
|
|
* Originally by Hans Häggström, 2010.
|
2010-07-26 01:10:01 -05:00
|
|
|
* Dual licenced under Creative Commons Attribution-Share Alike 3.0 and LGPL2 or later
|
2010-07-26 00:57:42 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
mm = 1;
|
|
|
|
cm = 10 * mm;
|
|
|
|
dm = 100 * mm;
|
|
|
|
m = 1000 * mm;
|
2012-01-29 20:31:23 -06:00
|
|
|
|
2010-07-26 00:57:42 -05:00
|
|
|
inch = 25.4 * mm;
|
|
|
|
|
2012-01-29 20:31:23 -06:00
|
|
|
X = [1, 0, 0];
|
|
|
|
Y = [0, 1, 0];
|
|
|
|
Z = [0, 0, 1];
|
|
|
|
|
2010-07-26 00:57:42 -05:00
|
|
|
M3 = 3*mm;
|
|
|
|
M4 = 4*mm;
|
|
|
|
M5 = 5*mm;
|
|
|
|
M6 = 6*mm;
|
|
|
|
M8 = 8*mm;
|
|
|
|
|
|
|
|
|
|
|
|
// When a small distance is needed to overlap shapes for boolean cutting, etc.
|
2010-07-26 04:57:28 -05:00
|
|
|
epsilon = 0.01*mm;
|
2010-07-26 00:57:42 -05:00
|
|
|
|