final
This commit is contained in:
40
case/YAPP_Box/examples/YAPP_ViewShapes_v30.scad
Normal file
40
case/YAPP_Box/examples/YAPP_ViewShapes_v30.scad
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
include <../YAPPgenerator_v3.scad>
|
||||
|
||||
|
||||
|
||||
if(len(preDefinedShapes) > 0)
|
||||
{
|
||||
for(i=[0:len(preDefinedShapes)-1])
|
||||
{
|
||||
shape=preDefinedShapes[i];
|
||||
translate([10,(i*25)+10,0])
|
||||
{
|
||||
color("red")
|
||||
linear_extrude(1)
|
||||
{
|
||||
|
||||
scale([20,20,1])
|
||||
polygon(shape[1][1]);
|
||||
}
|
||||
|
||||
color("Black")
|
||||
translate([0,0,-0.5])
|
||||
linear_extrude(2)
|
||||
{
|
||||
circle(d=1);
|
||||
}
|
||||
|
||||
color("Black")
|
||||
linear_extrude(1)
|
||||
{
|
||||
translate([15,-5,0])
|
||||
text(shape[0]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user