
top = base * 0.7;
This will create a triangle with its top vertex over a point 70% of the
way along its base.
Then 3D print these models, leaving the other parameters at their
defaults noted earlier:
• Two sets of the triangle from TriangleArea.scad (or you can do this
by setting the parameter twosets to TRUE) to do both at once).
• One triangular box with TriangleAreaBox.scad
You can use the same rectangular box for this case as you did for the
previous example if you keep the base and height parameters the same.
TriangleArea.scad will print this triangle in two pieces. In Figure 5-22 we
see the triangular box from TriangleAreaBox.scad. F