Last active
January 16, 2023 23:05
-
-
Save madhephaestus/4aeeaa49bd3a807eed8f8ff3dea84c48 to your computer and use it in GitHub Desktop.
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
/.settings | |
/.project | |
/.classpath | |
/.cproject | |
/cache/ | |
/*.class |
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
{ | |
"bezier": { | |
"start point": [ | |
32.43470616439045, | |
-2.14901062001006, | |
15.104495338593978 | |
], | |
"control two": [ | |
245.67771998520004, | |
-58.00561307736891, | |
12.946146685374913 | |
], | |
"end point": [ | |
268.17100332702967, | |
140.27499792285906, | |
156.79688145113775 | |
], | |
"control one": [ | |
-101.5986709881953, | |
192.04829921474388, | |
142.0819112407066 | |
], | |
"number of points": [ | |
20.0 | |
] | |
} | |
} |
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.scripting.ScriptingEngine | |
import com.neuronrobotics.bowlerkernel.Bezier3d.*; | |
import eu.mihosoft.vrl.v3d.*; | |
def URL="https://gist.github.com/4aeeaa49bd3a807eed8f8ff3dea84c48.git" | |
def file="bez.json" | |
//Git stored file loaded but not saved | |
BezierEditor editor = new BezierEditor(ScriptingEngine.fileFromGit(URL, file),20) | |
//Git file loaded and saved. THis will do a git call on each event of change | |
//BezierEditor editor = new BezierEditor(URL, file,10) | |
ArrayList<Transform> transforms = editor.transforms() | |
def modelParts = CSG.unionAll(Extrude.hull(new Cube(20).toCSG(), transforms)) | |
return [editor.get(),modelParts] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment