Randome bits of syntax that openscad doesn't treat as errors

This commit is contained in:
Timothy Schmidt 2011-01-21 03:40:36 -05:00
parent ab6012c6b8
commit 9c1d8c4ce8
5 changed files with 13 additions and 13 deletions

View File

@ -1,9 +1,9 @@
// Parametric curves, to be used as paths
// Licensed under the MIT license.
// © 2010 by Elmo Mäntynen
include <constants.scad>
use <math.scad>
include <constants.scad>
/* A circular helix of radius a and pitch 2πb is described by the following parametrisation:

View File

@ -509,7 +509,7 @@ function rotate_point (rotate, coord) =
function involute (base_radius, 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))
];

View File

@ -92,5 +92,5 @@ module _stepper_motor_mount(
%cylinder(r=motor_shaft_diameter/2,h=motor_length+motor_shaft_length--1, center = true);
}
}
};
}
}

View File

@ -29,13 +29,13 @@
//----------------------
// size is a vector [w, h, d]
module box(width, height, depth,) {
cube([width, height, depth,], true);
module box(width, height, depth) {
cube([width, height, depth], true);
}
// size is a vector [w, h, d]
module roundedBox(width, height, depth, radius) {
size=[width, height, depth,];
size=[width, height, depth];
cube(size - [2*radius,0,0], true);
cube(size - [0,2*radius,0], true);
for (x = [radius-size[0]/2, -radius+size[0]/2],

View File

@ -73,7 +73,7 @@ Nema08 = [
[NemaBackAxleLength, 9.9*mm],
[NemaAxleFlatDepth, -1*mm],
[NemaAxleFlatLengthFront, 0*mm],
[NemaAxleFlatLengthBack, 0*mm],
[NemaAxleFlatLengthBack, 0*mm]
];
Nema11 = [
@ -95,7 +95,7 @@ Nema11 = [
[NemaBackAxleLength, 10*mm],
[NemaAxleFlatDepth, 0.5*mm],
[NemaAxleFlatLengthFront, 10*mm],
[NemaAxleFlatLengthBack, 9*mm],
[NemaAxleFlatLengthBack, 9*mm]
];
Nema14 = [
@ -117,7 +117,7 @@ Nema14 = [
[NemaBackAxleLength, 10*mm],
[NemaAxleFlatDepth, 0.5*mm],
[NemaAxleFlatLengthFront, 15*mm],
[NemaAxleFlatLengthBack, 9*mm],
[NemaAxleFlatLengthBack, 9*mm]
];
Nema17 = [
@ -139,7 +139,7 @@ Nema17 = [
[NemaBackAxleLength, 15*mm],
[NemaAxleFlatDepth, 0.5*mm],
[NemaAxleFlatLengthFront, 15*mm],
[NemaAxleFlatLengthBack, 14*mm],
[NemaAxleFlatLengthBack, 14*mm]
];
Nema23 = [
@ -161,7 +161,7 @@ Nema23 = [
[NemaBackAxleLength, 15.60*mm],
[NemaAxleFlatDepth, 0.5*mm],
[NemaAxleFlatLengthFront, 16*mm],
[NemaAxleFlatLengthBack, 14*mm],
[NemaAxleFlatLengthBack, 14*mm]
];
Nema34 = [
@ -183,7 +183,7 @@ Nema34 = [
[NemaBackAxleLength, 34*mm],
[NemaAxleFlatDepth, 1.20*mm],
[NemaAxleFlatLengthFront, 25*mm],
[NemaAxleFlatLengthBack, 25*mm],
[NemaAxleFlatLengthBack, 25*mm]
];