Randome bits of syntax that openscad doesn't treat as errors
This commit is contained in:
parent
ab6012c6b8
commit
9c1d8c4ce8
|
@ -1,9 +1,9 @@
|
||||||
// Parametric curves, to be used as paths
|
// Parametric curves, to be used as paths
|
||||||
// Licensed under the MIT license.
|
// Licensed under the MIT license.
|
||||||
// © 2010 by Elmo Mäntynen
|
// © 2010 by Elmo Mäntynen
|
||||||
|
|
||||||
include <constants.scad>
|
|
||||||
use <math.scad>
|
use <math.scad>
|
||||||
|
include <constants.scad>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* A circular helix of radius a and pitch 2πb is described by the following parametrisation:
|
/* A circular helix of radius a and pitch 2πb is described by the following parametrisation:
|
||||||
|
|
|
@ -509,7 +509,7 @@ function rotate_point (rotate, coord) =
|
||||||
function involute (base_radius, involute_angle) =
|
function involute (base_radius, involute_angle) =
|
||||||
[
|
[
|
||||||
base_radius*(cos (involute_angle) + involute_angle*pi/180*sin (involute_angle)),
|
base_radius*(cos (involute_angle) + involute_angle*pi/180*sin (involute_angle)),
|
||||||
base_radius*(sin (involute_angle) - involute_angle*pi/180*cos (involute_angle)),
|
base_radius*(sin (involute_angle) - involute_angle*pi/180*cos (involute_angle))
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -92,5 +92,5 @@ module _stepper_motor_mount(
|
||||||
%cylinder(r=motor_shaft_diameter/2,h=motor_length+motor_shaft_length--1, center = true);
|
%cylinder(r=motor_shaft_diameter/2,h=motor_length+motor_shaft_length--1, center = true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,13 +29,13 @@
|
||||||
//----------------------
|
//----------------------
|
||||||
|
|
||||||
// size is a vector [w, h, d]
|
// size is a vector [w, h, d]
|
||||||
module box(width, height, depth,) {
|
module box(width, height, depth) {
|
||||||
cube([width, height, depth,], true);
|
cube([width, height, depth], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// size is a vector [w, h, d]
|
// size is a vector [w, h, d]
|
||||||
module roundedBox(width, height, depth, radius) {
|
module roundedBox(width, height, depth, radius) {
|
||||||
size=[width, height, depth,];
|
size=[width, height, depth];
|
||||||
cube(size - [2*radius,0,0], true);
|
cube(size - [2*radius,0,0], true);
|
||||||
cube(size - [0,2*radius,0], true);
|
cube(size - [0,2*radius,0], true);
|
||||||
for (x = [radius-size[0]/2, -radius+size[0]/2],
|
for (x = [radius-size[0]/2, -radius+size[0]/2],
|
||||||
|
|
12
stepper.scad
12
stepper.scad
|
@ -73,7 +73,7 @@ Nema08 = [
|
||||||
[NemaBackAxleLength, 9.9*mm],
|
[NemaBackAxleLength, 9.9*mm],
|
||||||
[NemaAxleFlatDepth, -1*mm],
|
[NemaAxleFlatDepth, -1*mm],
|
||||||
[NemaAxleFlatLengthFront, 0*mm],
|
[NemaAxleFlatLengthFront, 0*mm],
|
||||||
[NemaAxleFlatLengthBack, 0*mm],
|
[NemaAxleFlatLengthBack, 0*mm]
|
||||||
];
|
];
|
||||||
|
|
||||||
Nema11 = [
|
Nema11 = [
|
||||||
|
@ -95,7 +95,7 @@ Nema11 = [
|
||||||
[NemaBackAxleLength, 10*mm],
|
[NemaBackAxleLength, 10*mm],
|
||||||
[NemaAxleFlatDepth, 0.5*mm],
|
[NemaAxleFlatDepth, 0.5*mm],
|
||||||
[NemaAxleFlatLengthFront, 10*mm],
|
[NemaAxleFlatLengthFront, 10*mm],
|
||||||
[NemaAxleFlatLengthBack, 9*mm],
|
[NemaAxleFlatLengthBack, 9*mm]
|
||||||
];
|
];
|
||||||
|
|
||||||
Nema14 = [
|
Nema14 = [
|
||||||
|
@ -117,7 +117,7 @@ Nema14 = [
|
||||||
[NemaBackAxleLength, 10*mm],
|
[NemaBackAxleLength, 10*mm],
|
||||||
[NemaAxleFlatDepth, 0.5*mm],
|
[NemaAxleFlatDepth, 0.5*mm],
|
||||||
[NemaAxleFlatLengthFront, 15*mm],
|
[NemaAxleFlatLengthFront, 15*mm],
|
||||||
[NemaAxleFlatLengthBack, 9*mm],
|
[NemaAxleFlatLengthBack, 9*mm]
|
||||||
];
|
];
|
||||||
|
|
||||||
Nema17 = [
|
Nema17 = [
|
||||||
|
@ -139,7 +139,7 @@ Nema17 = [
|
||||||
[NemaBackAxleLength, 15*mm],
|
[NemaBackAxleLength, 15*mm],
|
||||||
[NemaAxleFlatDepth, 0.5*mm],
|
[NemaAxleFlatDepth, 0.5*mm],
|
||||||
[NemaAxleFlatLengthFront, 15*mm],
|
[NemaAxleFlatLengthFront, 15*mm],
|
||||||
[NemaAxleFlatLengthBack, 14*mm],
|
[NemaAxleFlatLengthBack, 14*mm]
|
||||||
];
|
];
|
||||||
|
|
||||||
Nema23 = [
|
Nema23 = [
|
||||||
|
@ -161,7 +161,7 @@ Nema23 = [
|
||||||
[NemaBackAxleLength, 15.60*mm],
|
[NemaBackAxleLength, 15.60*mm],
|
||||||
[NemaAxleFlatDepth, 0.5*mm],
|
[NemaAxleFlatDepth, 0.5*mm],
|
||||||
[NemaAxleFlatLengthFront, 16*mm],
|
[NemaAxleFlatLengthFront, 16*mm],
|
||||||
[NemaAxleFlatLengthBack, 14*mm],
|
[NemaAxleFlatLengthBack, 14*mm]
|
||||||
];
|
];
|
||||||
|
|
||||||
Nema34 = [
|
Nema34 = [
|
||||||
|
@ -183,7 +183,7 @@ Nema34 = [
|
||||||
[NemaBackAxleLength, 34*mm],
|
[NemaBackAxleLength, 34*mm],
|
||||||
[NemaAxleFlatDepth, 1.20*mm],
|
[NemaAxleFlatDepth, 1.20*mm],
|
||||||
[NemaAxleFlatLengthFront, 25*mm],
|
[NemaAxleFlatLengthFront, 25*mm],
|
||||||
[NemaAxleFlatLengthBack, 25*mm],
|
[NemaAxleFlatLengthBack, 25*mm]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue