Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1015,7 +1015,7 @@ def save_dxf_spline(offset_value,inflated_contours, scaling_factor, height, fing
|
|
| 1015 |
finger_cut_centers,
|
| 1016 |
final_polygons_inch,
|
| 1017 |
circle_diameter=1.0,
|
| 1018 |
-
min_gap=(0.
|
| 1019 |
max_attempts=100
|
| 1020 |
)
|
| 1021 |
|
|
@@ -1107,7 +1107,7 @@ def add_rectangular_boundary(doc, polygons_inch, boundary_length, boundary_width
|
|
| 1107 |
too_small = boundary_width_in < inner_width + 2 * clearance_side or boundary_length_in < inner_length + 2 * clearance_tb
|
| 1108 |
if too_small:
|
| 1109 |
raise BoundaryOverlapError("Error: The specified boundary dimensions are too small and overlap with the inner contours. Please provide larger value for boundary length and width.")
|
| 1110 |
-
if annotation_text.strip() and text_top > min_y -
|
| 1111 |
raise TextOverlapError("Error: The text is too close to the inner contours. Please provide larger value for boundary length and width.")
|
| 1112 |
return boundary_polygon
|
| 1113 |
|
|
|
|
| 1015 |
finger_cut_centers,
|
| 1016 |
final_polygons_inch,
|
| 1017 |
circle_diameter=1.0,
|
| 1018 |
+
min_gap=(0.5+offset_value),
|
| 1019 |
max_attempts=100
|
| 1020 |
)
|
| 1021 |
|
|
|
|
| 1107 |
too_small = boundary_width_in < inner_width + 2 * clearance_side or boundary_length_in < inner_length + 2 * clearance_tb
|
| 1108 |
if too_small:
|
| 1109 |
raise BoundaryOverlapError("Error: The specified boundary dimensions are too small and overlap with the inner contours. Please provide larger value for boundary length and width.")
|
| 1110 |
+
if annotation_text.strip() and text_top > min_y - 1:
|
| 1111 |
raise TextOverlapError("Error: The text is too close to the inner contours. Please provide larger value for boundary length and width.")
|
| 1112 |
return boundary_polygon
|
| 1113 |
|