Verify static clearance at mitred component corners
This commit is contained in:
parent
66934cfdc3
commit
d741456d6b
1 changed files with 18 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue