Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save aravindk2604/caab9128d9abcf136ffafc31a04239c1 to your computer and use it in GitHub Desktop.

Select an option

Save aravindk2604/caab9128d9abcf136ffafc31a04239c1 to your computer and use it in GitHub Desktop.
//create an extruded polygon
CSG polygon = Extrude.points(new Vector3d(0, 0, 40),// This is the extrusion depth
new Vector3d(0,0),// All values after this are the points in the polygon
new Vector3d(80,0),// Bottom right corner
new Vector3d(60,40),// upper right corner
new Vector3d(20,40)// upper left corner
);
return polygon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment