|
|
@@ -179,7 +179,7 @@ def draw_flex(t, h): |
|
|
|
turtle = svgturtle.SvgTurtle(t.x, t.y) |
|
|
|
al = h/3.0-args.thickness |
|
|
|
bl = (h-args.thickness)/3.0-args.thickness |
|
|
|
nx = int(args.corner_length) |
|
|
|
nx = int(args.corner/1.5) |
|
|
|
dx = args.corner/(2*nx-1) |
|
|
|
for stripe in range(nx): |
|
|
|
turtle.right(90) |
|
|
@@ -295,5 +295,5 @@ draw_plane(1.5*BOX, 1.5*BOX, 'plug') |
|
|
|
draw_plane(2.5*BOX, 1.5*BOX, 'lid') |
|
|
|
draw_plane(2.5*BOX, 1.5*BOX, 'plug_mark') |
|
|
|
draw_case(0.05*args.grid*args.dimension, 2.0*BOX, args.height+args.extra_height, args.slots) |
|
|
|
print('<g fill="none" stroke="red">', HOLES, '</g>', '<g fill="none" stroke="blue">', MARKS, '</g>', '<g fill="none" stroke="black">', SHAPES, '</g>', sep='\n') |
|
|
|
print('<g fill="none" stroke="black">', SHAPES, '</g>', '<g fill="none" stroke="red">', HOLES, '</g>', '<g fill="none" stroke="blue">', MARKS, '</g>', sep='\n') |
|
|
|
print('</svg>') |