- upgrade to use the new notations in the Shapely's buffer method for the cap_style and join_style parameters (used to be integers, now they are strings or defines)

This commit is contained in:
Marius Stanciu
2025-03-05 01:49:19 +02:00
parent bc3fb8fdee
commit 3f504e86c6
19 changed files with 88 additions and 84 deletions

View File

@@ -323,7 +323,7 @@ class ToolFiducials(AppTool):
if self.mode_method == 'auto':
xmin, ymin, xmax, ymax = self.grb_object.bounds()
bbox = box(xmin, ymin, xmax, ymax)
buf_bbox = bbox.buffer(self.margin_val, self.grb_steps_per_circle, join_style=2)
buf_bbox = bbox.buffer(self.margin_val, self.grb_steps_per_circle, join_style="mitre")
x0, y0, x1, y1 = buf_bbox.bounds
self.click_points.append(