MCAD-Library/triangles.scad
Eero af Heurlin add07c01b0 Merge branch 'master' of github.com:rambo/MCAD
Conflicts:
	triangles.scad
2010-08-26 12:27:55 +03:00

27 lines
512 B
OpenSCAD

/**
* Simple triangles library
*
* Authors:
* - Eero 'rambo' af Heurlin 2010-
*
* License: LGPL 2.1
*/
/**
* Standard right-angled triangle
*
* @param number o_len Lenght of the opposite side
* @param number a_len Lenght of the adjacent side
* @param number depth How wide/deep the triangle is in the 3rd dimension
*/
module triangle(o_len, a_len, depth)
{
linear_extrude(height=depth)
{
polygon(points=[[0,0],[a_len,0],[0,o_len]], paths=[[0,1,2]]);
}
}
//triangle(5,10,7);