Skip to content

Instantly share code, notes, and snippets.

@Octogonapus
Last active January 6, 2018 19:50
Show Gist options
  • Save Octogonapus/f76a64b09c6eb891bfc2effdcee1cc4d to your computer and use it in GitHub Desktop.
Save Octogonapus/f76a64b09c6eb891bfc2effdcee1cc4d to your computer and use it in GitHub Desktop.
Open Cable Chain Ends
Display the source blob
Display the rendered blob
Raw
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