MCPcopy
hub / github.com/CadQuery/cadquery / update_hull

Function update_hull

cadquery/hull.py:315–332  ·  view source on GitHub ↗
(
    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
315def 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
335def finalize_hull(hull: Hull) -> Wire:

Callers 1

find_hullFunction · 0.85

Calls 2

extendMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected