Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module triangle (x,y,z,rz,kolor,sx,sy,sz){
- scale([sx,sy,sz])
- color(kolor)
- translate ([x,y,z])
- rotate ([0,0,rz])
- linear_extrude (height=5)
- polygon ([[0,20],[20,-10],[-20,-10]]);
- }
- triangle (0,0,0,0,"red",1,1,1);
- triangle (-2,15,2.5,10,"blue",0.8,0.8,0.8);
- triangle (-8,30,5,20,"brown",0.7,0.7,0.7);
- triangle (-15,50,7.5,30,"green",0.6,0.6,0.6);
- triangle (-25,70,12.5,40,"pink",0.5,0.5,0.5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement