mirror of
git://projects.qi-hardware.com/ben-counterweight.git
synced 2024-11-24 16:27:15 +02:00
Print 16 covers on a page.
- cvr.py (main): moved previous main code to a function - cvr.py: generate cover repeatedly and distribute it on the page
This commit is contained in:
parent
6bf49a167c
commit
c853a09d5d
47
cvr.py
47
cvr.py
@ -159,26 +159,41 @@ def rect_outline(x0, y0, z0, x1, y1, z1):
|
|||||||
# ----- Main ------------------------------------------------------------------
|
# ----- Main ------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def main():
|
||||||
do = outline_gnuplot
|
global do
|
||||||
sk = None
|
|
||||||
else:
|
|
||||||
import HeeksPython as cad
|
|
||||||
|
|
||||||
do = outline_cad
|
if __name__ == "__main__":
|
||||||
cad.sketch()
|
do = outline_gnuplot
|
||||||
sk = cad.getlastobj()
|
sk = None
|
||||||
|
else:
|
||||||
|
import HeeksPython as cad
|
||||||
|
|
||||||
|
do = outline_cad
|
||||||
|
cad.sketch()
|
||||||
|
sk = cad.getlastobj()
|
||||||
|
|
||||||
|
|
||||||
outline(sk)
|
outline(sk)
|
||||||
label(sk)
|
label(sk)
|
||||||
|
|
||||||
|
shape.rect = rect_outline
|
||||||
|
shape.make_base()
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
for e in lines:
|
||||||
|
gnuplot_line(*e)
|
||||||
|
else:
|
||||||
|
for e in lines:
|
||||||
|
cad_line(sk, *e)
|
||||||
|
cad.translate(sk, -13, -44, 0)
|
||||||
|
|
||||||
|
return sk
|
||||||
|
|
||||||
shape.rect = rect_outline
|
|
||||||
shape.make_base()
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
for e in lines:
|
main()
|
||||||
gnuplot_line(*e)
|
|
||||||
else:
|
else:
|
||||||
for e in lines:
|
for x in (-100, 0):
|
||||||
cad_line(sk, *e)
|
for y in range(0, 256, 32):
|
||||||
|
sk = main()
|
||||||
|
cad.translate(sk, x, y-150, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user