Last active
January 6, 2018 19:50
-
-
Save Octogonapus/f76a64b09c6eb891bfc2effdcee1cc4d to your computer and use it in GitHub Desktop.
Open Cable Chain Ends
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
File anchorFile = ScriptingEngine.fileFromGit( | |
"https://github.com/Octogonapus/open_cable_chain_ends.git", | |
"end1_fixed.stl"); | |
CSG anchor = Vitamins.get(anchorFile) | |
CSG topCutout = new Cube(12.95, 3.5, 4).toCSG(); | |
topCutout = topCutout.movex(anchor.getMaxX() - topCutout.getTotalX()/2) | |
.movey(anchor.getMinY() + topCutout.getTotalY()/2) | |
.movez(anchor.getMaxZ() - topCutout.getTotalZ()/2) | |
topCutout = topCutout.movex(-4.7).movey(10.25).movez(0) | |
return anchor.difference(topCutout) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment