Spaces:
Sleeping
Sleeping
Update Code_2_7.py
Browse files- Code_2_7.py +6 -2
Code_2_7.py
CHANGED
|
@@ -1559,8 +1559,12 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,SearchArray,Thickness,pdfpa
|
|
| 1559 |
|
| 1560 |
# Divide the shapePerimeter into two halves
|
| 1561 |
half_index = len(shapeePerimeter) // 2
|
| 1562 |
-
half1 = shapeePerimeter[1:half_index+1]
|
| 1563 |
-
half2 = shapeePerimeter[half_index:]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1564 |
|
| 1565 |
# Calculate distances for the halves
|
| 1566 |
if len(half1) >= 2:
|
|
|
|
| 1559 |
|
| 1560 |
# Divide the shapePerimeter into two halves
|
| 1561 |
half_index = len(shapeePerimeter) // 2
|
| 1562 |
+
# half1 = shapeePerimeter[1:half_index+1]
|
| 1563 |
+
# half2 = shapeePerimeter[half_index:]
|
| 1564 |
+
half1 = shapeePerimeter[1:half_index]
|
| 1565 |
+
half2 = shapeePerimeter[half_index:-1]
|
| 1566 |
+
|
| 1567 |
+
|
| 1568 |
|
| 1569 |
# Calculate distances for the halves
|
| 1570 |
if len(half1) >= 2:
|