Skip to main content

create_spline

Kind: Function
Domain: Modeling and geometry
Canonical import: from cadflow import create_spline

Signature

def create_spline(*, control_points: 'Sequence[Sequence[ScalarLike]]', degree: 'int' = 3, knots: 'Optional[Sequence[ScalarLike]]' = None, multiplicities: 'Optional[Sequence[int]]' = None, weights: 'Optional[Sequence[ScalarLike]]' = None, periodic: 'bool' = False) -> 'Edge'

Description

Create an exact B-spline edge from named control-point parameters.

Create an exact B-spline edge from named control-point parameters.

Pass sampled curve points through fit_cubic_bspline_control_points(...) first, then pass the result fields explicitly as control_points=..., knots=..., and multiplicities=.... control_points are poles, not interpolation points; the curve generally does not pass through interior poles.

Other public imports

  • from cadflow import make_spline_redge

Parameters

NameTypeRequiredDefaultSource description
control_points'Sequence[Sequence[ScalarLike]]'yes-Not explicitly described in the source docstring.
degree'int'no3Not explicitly described in the source docstring.
knots'Optional[Sequence[ScalarLike]]'noNoneNot explicitly described in the source docstring.
multiplicities'Optional[Sequence[int]]'noNoneNot explicitly described in the source docstring.
weights'Optional[Sequence[ScalarLike]]'noNoneNot explicitly described in the source docstring.
periodic'bool'noFalseNot explicitly described in the source docstring.

Returns

Type: 'Edge'

The source docstring does not declare additional return semantics.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Behavior and constraints

  • The contract below is generated from the current public runtime signature. Check domain notes for ownership and workflow constraints.

Import check

from cadflow import create_spline

See also