Last active
May 5, 2024 18:49
-
-
Save madhephaestus/c1b31b66288d1dd93640c8e3b26743f4 to your computer and use it in GitHub Desktop.
Demonstrate assembly instructions
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
import eu.mihosoft.vrl.v3d.CSG | |
import eu.mihosoft.vrl.v3d.Cylinder | |
import eu.mihosoft.vrl.v3d.Hexagon | |
import eu.mihosoft.vrl.v3d.Transform | |
CSG vitamin_LewanSoulMotor_lx_224 = Vitamins.get("LewanSoulMotor", "lx_224") | |
CSG vitamin_LewanSoulHorn_round_m3_bolts = Vitamins.get("LewanSoulHorn", "round_m3_bolts") | |
CSG vitamin_capScrew_M3 = Vitamins.get("capScrew", "M3") | |
CSG simpleSyntax =new Cylinder(40,4).toCSG() // a one line Cylinder | |
simpleSyntax=simpleSyntax.difference([vitamin_LewanSoulMotor_lx_224,vitamin_LewanSoulHorn_round_m3_bolts]) | |
vitamin_LewanSoulMotor_lx_224 | |
.addAssemblyStep( 1, new Transform().movez(-30)) | |
vitamin_LewanSoulHorn_round_m3_bolts | |
.addAssemblyStep( 4, new Transform().movez(30)) | |
vitamin_capScrew_M3 | |
.addAssemblyStep( 4, new Transform().movez(30)) | |
.addAssemblyStep( 3, new Transform().movez(40)) | |
.addAssemblyStep( 2, new Transform().roty(90)) | |
return [vitamin_LewanSoulHorn_round_m3_bolts,vitamin_LewanSoulMotor_lx_224 ,vitamin_capScrew_M3,simpleSyntax] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment