Verify static clearance at mitred component corners

This commit is contained in:
Jan Petykiewicz 2026-11-26 11:57:35 -08:00
commit d741456d6b

View file

@ -695,6 +695,11 @@ class RoutingWorld:
obstacle = raw_geometries[hit_idx]
if buffered.touches(obstacle):
continue
# A mitre may extend past the physical clearance
# radius at a component corner. Check the distance
# before counting an overlap with that broad phase.
if self.clearance > 0 and polygon.distance(obstacle) >= self.clearance:
continue
obj_id = static_obstacles.raw_obj_ids[hit_idx]
if not self._is_in_safety_zone(polygon, obj_id, None, None):