Skip to content

Instantly share code, notes, and snippets.

@Stemer114
Created July 16, 2015 21:19
Show Gist options
  • Save Stemer114/14bfed948743a038a494 to your computer and use it in GitHub Desktop.
Save Stemer114/14bfed948743a038a494 to your computer and use it in GitHub Desktop.
right triangle
// right triangle
// side a oriented in x direction
// side b oriented in y direction
// height is in z direction
module right_triangle(
a = 10, //side a (x direction)
b = 10, //side b (y direction)
thickness = 5 //thickness (z-direction)
)
{
hull()
{
cube([a, de, thickness]);
cube([de, b, thickness]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment