Skip to content

Commit

Permalink
vex to pololu shaft adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Sep 11, 2017
1 parent 6bbc7d1 commit 652e26a
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion PololuShaftToVex.groovy
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
//Your code here
CSG pshaft =new Cylinder(2,2,11,(int)30).toCSG() // a one line Cylinder
CSG flat = new Cube( 4,// X dimention
3.4,// Y dimention
11// Z dimention
).toCSG()
.toYMin()
.toZMin()
.movey(pshaft.getMinY())

CSG xshaft = new RoundedCube( 3.12,// X dimention
3.12,// Y dimention
11// Z dimention
)
.cornerRadius(0.5)// sets the radius of the corner
.toCSG()// converts it to a CSG tor display
.toZMax()
.movez(-1)
pshaft=pshaft.intersect(flat)

CSG coupler = new Cube( 7.5,// X dimention
7.5,// Y dimention
20// Z dimention
).toCSG()
.difference([pshaft,xshaft])
.rotx(90)
.toZMin()
return [coupler]

0 comments on commit 652e26a

Please sign in to comment.