Skip to content

Commit 7a5c080

Browse files
committed
Adding the threaded insert
1 parent d554b7c commit 7a5c080

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

BaseBot.groovy

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,11 +549,13 @@ try {
549549
batteryHolder=batteryHolder.transformed(tf9v)
550550

551551
CSG workplateScrew = Vitamins.get("chamferedScrew", "M3x16")
552+
CSG threads = Vitamins.get("heatedThreadedInsert", "M3")
552553

553554
double hingePartThickness = 5
554555
double hingePartRadius=8
555556
CSG hingeLug = new Cylinder(hingePartRadius-0.5, hingePartThickness).toCSG()
556557
.moveToCenterZ()
558+
557559
CSG hingeLugMoving = new Cylinder(hingePartRadius/2, hingePartThickness).toCSG()
558560
.moveToCenterZ()
559561

@@ -569,13 +571,18 @@ try {
569571
.movey(top.getMaxY()-5)
570572

571573

572-
574+
CSG screwBoss = new Cylinder(5, hingePartThickness).toCSG()
575+
.toZMax()
576+
.movez(-2)
577+
.transformed(hingeFastener)
573578
CSG hingeScrew = workplateScrew.movez(hingePartThickness+2).transformed(hingeLocation)
574-
CSG hingeFastenerScrew = workplateScrew.transformed(hingeFastener)
579+
CSG hingeFastenerScrew = workplateScrew.toZMax().transformed(hingeFastener)
575580
CSG movedHingeLug=hingeLug.transformed(hingeLocation)
576581
CSG hingeConnection = new Cube(hingePartRadius,hingePartRadius,hingePartThickness).toCSG()
577582
.toXMin()
578583
hingeLugMoving=hingeLugMoving.union(hingeConnection)
584+
585+
579586
CSG hingingPlate = new Cube(bot.getTotalX()-caseRounding*2,bot.getTotalY()+hingePartRadius+hingePartRadius/2, 2).toCSG()
580587
.toZMin()
581588
.movez(top.getMaxZ())
@@ -588,6 +595,7 @@ try {
588595
.difference(hingeFastenerScrew)
589596

590597
top=top.union(movedHingeLug)
598+
.union(screwBoss)
591599
.difference(hingeScrew)
592600
.difference(hingeFastenerScrew)
593601
servoCover=servoCover

0 commit comments

Comments
 (0)