example fixes and improvements
This commit is contained in:
parent
e11132b51d
commit
e2c91076f7
1 changed files with 336 additions and 144 deletions
|
|
@ -2,7 +2,7 @@ from __future__ import annotations
|
|||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from inire.model import SearchOptions
|
||||
from inire.model import SearchOptions, resolve_bend_geometry
|
||||
from inire.seeds import Bend90Seed, PathSeed, SBendSeed, StraightSeed
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
@ -23,7 +23,7 @@ def materialize_path_seed(
|
|||
path: list[ComponentResult] = []
|
||||
current = start
|
||||
dilation = clearance / 2.0
|
||||
bend_collision_type = search.bend_collision_type
|
||||
bend_collision_type, bend_physical_geometry = resolve_bend_geometry(search)
|
||||
bend_clip_margin = search.bend_clip_margin
|
||||
|
||||
for segment in seed.segments:
|
||||
|
|
@ -36,6 +36,7 @@ def materialize_path_seed(
|
|||
net_width,
|
||||
segment.direction,
|
||||
collision_type=bend_collision_type,
|
||||
physical_geometry_type=bend_physical_geometry,
|
||||
clip_margin=bend_clip_margin,
|
||||
dilation=dilation,
|
||||
)
|
||||
|
|
@ -46,6 +47,7 @@ def materialize_path_seed(
|
|||
segment.radius,
|
||||
net_width,
|
||||
collision_type=bend_collision_type,
|
||||
physical_geometry_type=bend_physical_geometry,
|
||||
clip_margin=bend_clip_margin,
|
||||
dilation=dilation,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue