Spaces:
Paused
Paused
Update deploying_3_3.py
Browse files- deploying_3_3.py +2 -0
deploying_3_3.py
CHANGED
|
@@ -560,6 +560,8 @@ def get_hatch_color(entity):
|
|
| 560 |
print("Invalid or unhandled color index, defaulting to white.")
|
| 561 |
return (255, 255, 255)
|
| 562 |
|
|
|
|
|
|
|
| 563 |
|
| 564 |
"""### Hatched areas"""
|
| 565 |
def get_hatched_areas(datadoc,filename,FinalRatio,rotationangle,SearchArray):
|
|
|
|
| 560 |
print("Invalid or unhandled color index, defaulting to white.")
|
| 561 |
return (255, 255, 255)
|
| 562 |
|
| 563 |
+
def calculate_distance(p1, p2):
|
| 564 |
+
return math.sqrt((p1[0] - p2[0])**2 + (p1[1] - p2[1])**2)
|
| 565 |
|
| 566 |
"""### Hatched areas"""
|
| 567 |
def get_hatched_areas(datadoc,filename,FinalRatio,rotationangle,SearchArray):
|