Function
update_hull
(
current_e: Entity,
ix: int,
entities: List[Entity],
angles: List[float],
segments: List[Segment],
hull: Hull,
)
Source from the content-addressed store, hash-verified
| 313 | |
| 314 | |
| 315 | def update_hull( |
| 316 | current_e: Entity, |
| 317 | ix: int, |
| 318 | entities: List[Entity], |
| 319 | angles: List[float], |
| 320 | segments: List[Segment], |
| 321 | hull: Hull, |
| 322 | ) -> Tuple[Entity, float, bool]: |
| 323 | |
| 324 | next_e = entities[ix] |
| 325 | connecting_seg = segments[ix] |
| 326 | |
| 327 | if isinstance(next_e, Point): |
| 328 | entities.pop(ix) |
| 329 | |
| 330 | hull.extend((connecting_seg, next_e)) |
| 331 | |
| 332 | return next_e, angles[ix], next_e is hull[0] |
| 333 | |
| 334 | |
| 335 | def finalize_hull(hull: Hull) -> Wire: |
Tested by
no test coverage detected