Marthee commited on
Commit
f7df77e
·
verified ·
1 Parent(s): 7b9e5c6

Update Code_2_7.py

Browse files
Files changed (1) hide show
  1. 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: