This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.neuronrobotics.bowlerstudio.vitamins.*; | |
| double shaftWidth = 6.5, shaftLength = 20; | |
| double startRadians = Math.toRadians(0), endRadians = Math.toRadians(90); | |
| double startRadius = 0.7 * 25.4, endRadius = 13 * 25.4; | |
| double screwHoleRadius = 4.4/2; | |
| double mountThickness = 21.5; | |
| CSG gear = Vitamins.get("vexGear", "HS60T").movez(-12.7/2); | |
| CSG shaft = new Cube(shaftWidth, shaftWidth, shaftLength).toCSG(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| double baseX = 126, baseXTab = 12; | |
| double baseY = 49, baseYArch = 60.5; | |
| double baseZ = 20.5; | |
| double hsAxleX = 6.35; | |
| double screwRadius = 5/2; | |
| double tabCutoutX = 20, tabCutoutY = 23; | |
| double gearTooloffset = 2, motorToolOffset = 0.5; | |
| Vitamins.setGitRepoDatabase("https://github.com/octogonapus/Hardware-Dimensions.git") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CSG getEllipse(double xRadius, double yRadius, double z) { | |
| List<Vector3d> points = []; | |
| for (double i = 0; i < 2 * Math.PI; i += 0.01) { | |
| points.add(new Vector3d((xRadius*yRadius*Math.cos(i)) / Math.sqrt((Math.pow((yRadius*Math.cos(i)), 2) + Math.pow((xRadius*Math.sin(i)), 2))), | |
| (xRadius*yRadius*Math.sin(i)) / Math.sqrt((Math.pow((yRadius*Math.cos(i)), 2) + Math.pow((xRadius*Math.sin(i)), 2))), | |
| 0)); | |
| } | |
| return Extrude.points(new Vector3d(0, 0, z), points); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.codehaus.groovy.ast.*; | |
| import org.codehaus.groovy.ast.expr.*; | |
| import org.codehaus.groovy.ast.stmt.*; | |
| import org.codehaus.groovy.transform.*; | |
| import org.codehaus.groovy.control.*; | |
| import org.codehaus.groovy.control.customizers.*; | |
| import com.neuronrobotics.bowlerstudio.scripting.GroovyHelper; | |
| import com.neuronrobotics.bowlerstudio.scripting.IDebugScriptRunner; | |
| import com.neuronrobotics.bowlerstudio.scripting.IScriptingLanguage; | |
| import com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CSG getInsert(boolean isRound) { | |
| CSG roundPart = new Cylinder(10/2, 10/2, 1.2, 80).toCSG(); | |
| CSG shaft = new Cube(6.4, 6.4, 5.15).toCSG(); | |
| CSG axleHole; | |
| if (isRound) { | |
| double diameter = Math.sqrt(Math.pow(3.1, 2) + Math.pow(3.1, 2)); | |
| axleHole = new Cylinder(diameter/2, diameter/2, 5.15, 80).toCSG(); | |
| } else { | |
| axleHole = new Cube(3.1, 3.1, 5.15).toCSG(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.scene.control.*; | |
| import javafx.scene.layout.*; | |
| import com.neuronrobotics.bowlerbuilder.*; | |
| FxUtil.runFX({ | |
| Dialog dialog = new Dialog(); | |
| dialog.setTitle("test"); | |
| dialog.getDialogPane().getButtonTypes().add(ButtonType.OK); | |
| dialog.showAndWait(); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Source Structure Synth code: | |
| R1 | |
| set maxdepth 25 | |
| rule R1 { | |
| { x 0.5 rx 10 s 0.95 } R1; | |
| { s 5 } box; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer