fix custom poly transform

This commit is contained in:
Jan Petykiewicz 2026-03-21 01:30:51 -07:00
commit 7455917b4a

View file

@ -434,7 +434,8 @@ def _apply_collision_model(
Applies the specified collision model to an arc geometry.
"""
if isinstance(collision_type, Polygon):
return [collision_type]
# Translate the custom polygon to the bend center (cx, cy)
return [shapely.transform(collision_type, lambda x: x + [cx, cy])]
if collision_type == "arc":
return [arc_poly]