diff --git a/cadquery/occ_impl/shapes.py b/cadquery/occ_impl/shapes.py index dc1ae574f..8c0a637bf 100644 --- a/cadquery/occ_impl/shapes.py +++ b/cadquery/occ_impl/shapes.py @@ -5561,6 +5561,36 @@ def _make_builder(): return _compound_or_shape(results) +@overload +def loft( + s: Sequence[Shape], + cap: bool = False, + ruled: bool = False, + continuity: Literal["C1", "C2", "C3"] = "C2", + parametrization: Literal["uniform", "chordal", "centripetal"] = "uniform", + degree: int = 3, + compat: bool = True, + smoothing: bool = False, + weights: Tuple[float, float, float] = (1, 1, 1), +) -> Shape: + ... + + +@overload +def loft( + *s: Shape, + cap: bool = False, + ruled: bool = False, + continuity: Literal["C1", "C2", "C3"] = "C2", + parametrization: Literal["uniform", "chordal", "centripetal"] = "uniform", + degree: int = 3, + compat: bool = True, + smoothing: bool = False, + weights: Tuple[float, float, float] = (1, 1, 1), +) -> Shape: + ... + + @multimethod def loft( s: Sequence[Shape], @@ -5654,7 +5684,7 @@ def _make_builder(cap): @loft.register -def loft( +def _( *s: Shape, cap: bool = False, ruled: bool = False,