Skip to main content

add_bspline_rsketch

Kind: Function
Domain: Sketch
Canonical import: from cadflow import add_bspline_rsketch

Signature

def add_bspline_rsketch(sketch: 'Sketch', entity_id: 'str', start: 'Union[SketchRef, str]', end: 'Union[SketchRef, str]', control_points: 'Sequence[Any]', degree: 'int' = 3, knots: 'Optional[Sequence[float]]' = None, multiplicities: 'Optional[Sequence[int]]' = None, weights: 'Optional[Sequence[float]]' = None, periodic: 'bool' = False, *, construction: 'bool' = False) -> 'Sketch'

Description

Add a B-spline curve entity to a sketch.

Add a B-spline curve entity to a sketch.

The start/end point refs link the B-spline into a closed profile loop. Control points may be literal 2-D coordinates or point refs.

Parameters

NameTypeRequiredDefaultSource description
sketch'Sketch'yes-Not explicitly described in the source docstring.
entity_id'str'yes-Not explicitly described in the source docstring.
start'Union[SketchRef, str]'yes-Not explicitly described in the source docstring.
end'Union[SketchRef, str]'yes-Not explicitly described in the source docstring.
control_points'Sequence[Any]'yes-Not explicitly described in the source docstring.
degree'int'no3Not explicitly described in the source docstring.
knots'Optional[Sequence[float]]'noNoneNot explicitly described in the source docstring.
multiplicities'Optional[Sequence[int]]'noNoneNot explicitly described in the source docstring.
weights'Optional[Sequence[float]]'noNoneNot explicitly described in the source docstring.
periodic'bool'noFalseNot explicitly described in the source docstring.
construction'bool'noFalseNot explicitly described in the source docstring.

Returns

Type: 'Sketch'

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 add_bspline_rsketch

See also