fix custom poly transform
This commit is contained in:
parent
bc4184693d
commit
7455917b4a
1 changed files with 4 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue