# elmom/MCAD forked from D1plo1d/MCAD

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

• Loading branch information...
1 parent ab6012c commit 9c1d8c4ce865e354837fca38ba73fc032651a133 timschmidt committed Jan 21, 2011
Showing with 13 additions and 13 deletions.
1. +2 −2 curves.scad
2. +1 −1 involute_gears.scad
3. +1 −1 motors.scad
4. +3 −3 shapes.scad
5. +6 −6 stepper.scad
 @@ -1,9 +1,9 @@ // Parametric curves, to be used as paths // Licensed under the MIT license. // © 2010 by Elmo Mäntynen - -include use +include + /* 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) = [ 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); } } - }; + } }
 @@ -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],
 @@ -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] ];

#### 0 comments on commit `9c1d8c4`

Please sign in to comment.