KnotCollectionGetInterval Method

Returns the knot interval, and the index of the knot interval, containing the point specified by parameter.

Namespace: Teigha.Geometry
Assembly: TD_Mgd (in TD_Mgd.dll) Version: 27.3.0.0
Syntax
public int GetInterval(
        int order,
        double parameter,
        out Interval interval
)

Parameters

order  Int32
[in] The order of the spline.
parameter  Double
[in] Parameter to specify a point on the knot collection.
interval  Interval
[out] Receives the interval containing the point specified by parameter.

Return Value

Int32
Index of the knot interval containing the specified point.
Remarks
parameter must lie between the knot values indexed by order - 1 and length() - order, where order is the order of the spline.
See Also