Skip to content

Instantly share code, notes, and snippets.

@madhephaestus
Created December 14, 2017 20:11
Show Gist options
  • Save madhephaestus/e897dd658fa6741270e4598457cfc2bf to your computer and use it in GitHub Desktop.
Save madhephaestus/e897dd658fa6741270e4598457cfc2bf to your computer and use it in GitHub Desktop.
GearAlternate
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import eu.mihosoft.vrl.v3d.svg.*;
import eu.mihosoft.vrl.v3d.Extrude;
File f = ScriptingEngine
.fileFromGit(
"https://gist.github.com/cgstephenson/3d23388d5b5db75be3c217d79ffcda88",//git repo URL
"master",
"airFoil.svg"// File from within the Git repo
)
SVGLoad s = new SVGLoad(f.toURI())
ArrayList<CSG>gear = s.extrude(10,0.01)
return gear.collect{it.scale(10)}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment