Marthee commited on
Commit
e454ba6
·
verified ·
1 Parent(s): 687ca9e

Update Code_2_7.py

Browse files
Files changed (1) hide show
  1. Code_2_7.py +4 -4
Code_2_7.py CHANGED
@@ -2214,7 +2214,7 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,SearchArray,CorrectionRatio
2214
  result = cv2.pointPolygonTest(Boundingpolygon, (x, y), False)
2215
  if result < 0: # < 0 means point is outside
2216
  discard = True
2217
- break
2218
  else:
2219
  for point in points:
2220
  if not (bxmin <= point[0] <= bxmax and bymin <= point[1] <= bymax):
@@ -2252,7 +2252,7 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,SearchArray,CorrectionRatio
2252
  result = cv2.pointPolygonTest(Boundingpolygon, (x, y), False)
2253
  if result < 0: # < 0 means point is outside
2254
  discard = True
2255
- break
2256
  else:
2257
  for point in points:
2258
  if not (bxmin <= point[0] <= bxmax and bymin <= point[1] <= bymax):
@@ -2303,7 +2303,7 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,SearchArray,CorrectionRatio
2303
  result = cv2.pointPolygonTest(Boundingpolygon, (x, y), False)
2304
  if result < 0: # < 0 means point is outside
2305
  discard = True
2306
- break
2307
  else:
2308
  for point in points:
2309
  if not (bxmin <= point[0] <= bxmax and bymin <= point[1] <= bymax):
@@ -2331,7 +2331,7 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,SearchArray,CorrectionRatio
2331
  result = cv2.pointPolygonTest(Boundingpolygon, (x, y), False)
2332
  if result < 0: # < 0 means point is outside
2333
  discard = True
2334
- break
2335
  else:
2336
  for point in points:
2337
  if not (bxmin <= point[0] <= bxmax and bymin <= point[1] <= bymax):
 
2214
  result = cv2.pointPolygonTest(Boundingpolygon, (x, y), False)
2215
  if result < 0: # < 0 means point is outside
2216
  discard = True
2217
+ break
2218
  else:
2219
  for point in points:
2220
  if not (bxmin <= point[0] <= bxmax and bymin <= point[1] <= bymax):
 
2252
  result = cv2.pointPolygonTest(Boundingpolygon, (x, y), False)
2253
  if result < 0: # < 0 means point is outside
2254
  discard = True
2255
+ break
2256
  else:
2257
  for point in points:
2258
  if not (bxmin <= point[0] <= bxmax and bymin <= point[1] <= bymax):
 
2303
  result = cv2.pointPolygonTest(Boundingpolygon, (x, y), False)
2304
  if result < 0: # < 0 means point is outside
2305
  discard = True
2306
+ break
2307
  else:
2308
  for point in points:
2309
  if not (bxmin <= point[0] <= bxmax and bymin <= point[1] <= bymax):
 
2331
  result = cv2.pointPolygonTest(Boundingpolygon, (x, y), False)
2332
  if result < 0: # < 0 means point is outside
2333
  discard = True
2334
+ break
2335
  else:
2336
  for point in points:
2337
  if not (bxmin <= point[0] <= bxmax and bymin <= point[1] <= bymax):