CircularKnitic Parametric: Difference between revisions
Jump to navigation
Jump to search
(→P2) |
|||
Line 8: | Line 8: | ||
<nowiki> | <nowiki> | ||
needleWidth=1.8; | needleWidth=1.8; | ||
p2needlegrooveID= | p2needlegrooveID=274.4; | ||
p2needlegrooveDepth=2.8; | p2needlegrooveDepth=2.8; | ||
p2H=104; | p2H=104; | ||
p2W=4.8; | p2W=4.8; | ||
p2ID= | p2ID=270; | ||
p2OD=p2ID+p2W; | p2OD=p2ID+(p2W*2); | ||
p2holeH=75; | p2holeH=75; | ||
p2number=12; //number of sections around circle | |||
</nowiki> | </nowiki> | ||
Revision as of 21:27, 3 February 2018
Goal: Replicate CircularKnitic's designs with OpenScad to allow for larger machines to be built
Code
CKvars.scad
needleWidth=1.8; p2needlegrooveID=274.4; p2needlegrooveDepth=2.8; p2H=104; p2W=4.8; p2ID=270; p2OD=p2ID+(p2W*2); p2holeH=75; p2number=12; //number of sections around circle
CKp2.scad
include <CKvars.scad>; CKp2(); module CKp2(){ translate([p2OD/2,0,0]){ difference(){ cylinder(h=p2H,d=p2OD); cylinder(h=p2H,d=p2ID); translate([-p2OD/2,-p2OD/2,0]){ cube([p2OD,p2OD/2,p2H]); } rotate([0,0,-360/p2number]){ translate([-p2OD/2,0,0]) cube([p2OD,p2OD/2,p2H]); } } } } //end module