-rw-r--r-- | delta.jscad | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/delta.jscad b/delta.jscad index fd36ba5..489e20d 100644 --- a/delta.jscad +++ b/delta.jscad @@ -409,50 +409,62 @@ function microswitch() { return CSG.cube({ center:[x,0,0], radius: [0.6/2,3.2/2,13/2] }) }) ).subtract( [-9.5/2,9.5/2].map(function(x,i) { screw_connector[i] = new CSG.Connector([x,6/2,0],[0,-1,0],[0,0,1]); return CSG.cylinder({ start: [x,-4,0], end: [x,4,0], radius: 2/2 }) }) ); rv.properties.switch_connector = new CSG.Connector([2.5,0.5,6+5/2],[0,0,1],[0,-1,0]); rv.properties.screw_connector = screw_connector; rv.properties.microswitch = new CSG.Properties(); rv.properties.microswitch.size = new CSG.Vector3D( 19.8,6,10 ); return rv; } function getParameterDefinitions() { return [{ name: 'part', type: 'choice', - values: ['platform', 'hinged', 'clamp', 'fanholder', 'alltogethernow'], - captions: ['Effector platform','Hinged part', 'Clamp', 'Fan holder', 'All together now!'], + values: [ + 'platform', + 'hinged', + 'clamp', + 'fanholder', + 'alltogethernow' + ], + captions: [ + 'Effector platform', + 'Hinged part', + 'Clamp', + 'Fan holder', + 'All together now!' + ], caption: 'Part', initial: 'alltogethernow' }]; } function main(params) { var e = EFFECTOR.effector(); var hs = E3DV6.heatsink(); hs = hs.connectTo(hs.properties.grove_connector,e.properties.grove_connector,false,0); var ms = microswitch(); var hd = EFFECTOR.hinged({ microswitch:ms,effector:e }); ms = ms.connectTo( ms.properties.screw_connector[0], hd.properties.microswitch_screw_connector[0], false, 0); var hdhd = EFFECTOR.split_hinged(hd); var fh = EFFECTOR.fanholder(); return union({ platform: e, hinged: hdhd[1], clamp: hdhd[0], fanholder: fh, |