HM_ExtAPI::GeomCurveConvertToNURBS()

Converts parametric segment of a curve of any type to NURBS curve.

Syntax

bool GeomCurveConvertToNURBS(
const HM_EntityGeometryCurve & curve,
double start_param,
double end_param,
HM_EntityGeometryCurve& curve_nurbs
);

Type

HyperMesh Ext API

Description

The function call creates new NURBS curve object. To free the object use the function HM_ExtAPI::ReleaseGeomCurve().

If the function succeeds, the return value is true. If the function fails, the return value is false. To get extended value information, call HM_ExtAPI::GetLastErrorCode().

Requires including hm_extapi.h.

Inputs

curve
[in] - Handle to curve object that was returned by previous calls to API function.
start_param
[in] - Start parameter of the parametric range of the curve segment that is converted.
end_param
[in] - End parameter of the parametric range of the curve segment that is converted.
curve_nurbs
[out] - Handle to curve object of NURBS type.

Errors

None.