mirror of
git://projects.qi-hardware.com/ben-counterweight.git
synced 2025-02-17 23:04:43 +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
15
cvr.py
15
cvr.py
@ -159,6 +159,9 @@ def rect_outline(x0, y0, z0, x1, y1, z1):
|
|||||||
# ----- Main ------------------------------------------------------------------
|
# ----- Main ------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
global do
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
do = outline_gnuplot
|
do = outline_gnuplot
|
||||||
sk = None
|
sk = None
|
||||||
@ -182,3 +185,15 @@ if __name__ == "__main__":
|
|||||||
else:
|
else:
|
||||||
for e in lines:
|
for e in lines:
|
||||||
cad_line(sk, *e)
|
cad_line(sk, *e)
|
||||||
|
cad.translate(sk, -13, -44, 0)
|
||||||
|
|
||||||
|
return sk
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
else:
|
||||||
|
for x in (-100, 0):
|
||||||
|
for y in range(0, 256, 32):
|
||||||
|
sk = main()
|
||||||
|
cad.translate(sk, x, y-150, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user