Skip to content

gen_nurbs_interpgen_nurbs_interpGenNurbsInterpGenNurbsInterpgen_nurbs_interpT_gen_nurbs_interpπŸ”—

Short descriptionπŸ”—

gen_nurbs_interpgen_nurbs_interpGenNurbsInterpGenNurbsInterpgen_nurbs_interpT_gen_nurbs_interp β€” Create control data of a NURBS curve that interpolates given points.

SignatureπŸ”—

gen_nurbs_interp( coordinates.y Rows, coordinates.x Cols, real Tangents, integer Degree, out coordinates.y CtrlRows, out coordinates.x CtrlCols, out real Knots )gen_nurbs_interp( : : Rows, Cols, Tangents, Degree : CtrlRows, CtrlCols, Knots )void GenNurbsInterp( const HTuple& Rows, const HTuple& Cols, const HTuple& Tangents, const HTuple& Degree, HTuple* CtrlRows, HTuple* CtrlCols, HTuple* Knots )static void HOperatorSet.GenNurbsInterp( HTuple rows, HTuple cols, HTuple tangents, HTuple degree, out HTuple ctrlRows, out HTuple ctrlCols, out HTuple knots )def gen_nurbs_interp( rows: Sequence[float], cols: Sequence[float], tangents: Sequence[float], degree: int ) -> Tuple[Sequence[float], Sequence[float], Sequence[float]]

Herror T_gen_nurbs_interp( const Htuple Rows, const Htuple Cols, const Htuple Tangents, const Htuple Degree, Htuple* CtrlRows, Htuple* CtrlCols, Htuple* Knots )

DescriptionπŸ”—

gen_nurbs_interpGenNurbsInterp creates the NURBS control data CtrlRowsctrlRowsctrl_rows, CtrlColsctrlColsctrl_cols, and Knotsknotsknots of a NURBS curve that interpolates the input points (Rowsrowsrows, Colscolscols). If the input point list is not closed (i.e., the first point is identical to the last point), the tangents of the first and last point must be given in Tangentstangentstangents in the order \([drow_{0},dcol_{0},drow_{n-1},dcol_{n-1}]\) (for closed point lists, Tangentstangentstangents must be an empty tuple). Furthermore the Degreedegreedegree of the NURBS curve must be specified.

The output of gen_nurbs_interpGenNurbsInterp can be used directly with gen_contour_nurbs_xldGenContourNurbsXld with the weights vector set to 'auto'"auto".

See the documentation of gen_contour_nurbs_xldGenContourNurbsXld for more information on NURBS curves.

Execution informationπŸ”—

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

ParametersπŸ”—

Rowsrowsrows (input_control) coordinates.y-array β†’ (real)(real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

Row coordinates of input point list.

Number of elements: Rows == Cols

Colscolscols (input_control) coordinates.x-array β†’ (real)(real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

Column coordinates of input point list.

Number of elements: Cols == Rows

Tangentstangentstangents (input_control) real-array β†’ (real)(real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

Tangents at first and last point.

Default: [][]

Degreedegreedegree (input_control) integer β†’ (integer)(integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Order of the output curve.

Default: 33
Suggested values: 2, 3, 4, 52, 3, 4, 5
Restriction: Degree >= 2

CtrlRowsctrlRowsctrl_rows (output_control) coordinates.y-array β†’ (real)(real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

Row coordinates of the control polygon.

CtrlColsctrlColsctrl_cols (output_control) coordinates.x-array β†’ (real)(real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

Column coordinates of the control polygon.

Number of elements: Cols == Rows

Knotsknotsknots (output_control) real-array β†’ (real)(real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

The knot vector of the output curve.

ResultπŸ”—

If all input parameters are correct gen_nurbs_interpGenNurbsInterp returns the value 2 (H_MSG_TRUE).

Combinations with other operatorsπŸ”—

Combinations

Possible successors

gen_contour_nurbs_xldGenContourNurbsXld

See also

draw_nurbs_interpDrawNurbsInterp, draw_nurbs_interp_modDrawNurbsInterpMod

ReferencesπŸ”—

L. Piegl, W. Tiller: β€˜β€™The NURBS Bookβ€™β€˜, 2nd Edition, Springer, 1997.

ModuleπŸ”—

Foundation