HM_ExtAPI::GeomCurveGetType()

Returns curve type.

Syntax

bool GeomCurveGetType(
const HM_EntityGeometryCurve & curve,
HM_ExtAPI::CurveType& ctyp
);

Type

HyperMesh Ext API Function

Description

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.
ctyp
[out] - Curve type. When function returns, this parameter can have one of following values:
HM_ExtAPI::SEGMENT - Straight line segment
HM_ExtAPI::CIRCLE - Circle
HM_ExtAPI::ELLPSE - Ellipse
HM_ExtAPI::NURBS_CURVE - NURBS spline curve
HM_ExtAPI::APPROXIMATION_CURVE - Curve represented by approximation points
HM_ExtAPI::COMPOSED_CURVE - Curve composed from segments of other curves
HM_ExtAPI::NOT_A_CURVE - The curve was not recognized as a valid type

Errors

None.