From 8f359d886409eaf58567e987296b475d65100a0b Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Wed, 20 Sep 2017 17:55:57 -0400 Subject: [PATCH] using vex shaft maker --- PololuShaftToVex.groovy | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/PololuShaftToVex.groovy b/PololuShaftToVex.groovy index 10fdae3..dae8327 100755 --- a/PololuShaftToVex.groovy +++ b/PololuShaftToVex.groovy @@ -1,15 +1,11 @@ LengthParameter printerOffset = new LengthParameter("printerOffset",0.25,[2,0.001]) -double vshaftSize = 3.12 -double finalV = vshaftSize+(printerOffset.getMM()*1.5) - - -CSG vshaft = new RoundedCube( finalV,// X dimention - finalV,// Y dimention - 11// Z dimention - ) - .cornerRadius(0.5)// sets the radius of the corner - .toCSG()// converts it to a CSG tor display +CSG vshaft = (CSG)ScriptingEngine + .gitScriptRun( + "https://github.com/WPIRoboticsEngineering/RBELabCustomParts.git", // git location of the library + "dShaft.groovy" , // file to load + [11] + ) .toZMax() .movez(-1) pshaft=(CSG)ScriptingEngine