HM_ExtAPI::GeomEdgeGetGeometry()

Returns curve that defines edge geometry.

Syntax

bool GeomEdgeGetGeometry(
const HM_EntityGeomEdge & edge,
HM_EntityGeometryCurve& curve,
double& start_par,
double& end_par
);

Type

HyperMesh Ext API Function

Description

The curve that defines geometry of the edge is a 3d curve. In case if the edge is connected to one of more faces there is also 2d curve associated with the edge for each of connected faces. Use the function HM_ExtAPI::GeomCoedgeGetGeometry() to obtain corresponding 2d curves.

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

edge
[in] - Handle to edge object that was returned by previous calls to API functions.
curve
[out] - Handle to curve object that defines geometry of the edge.
start_par
[out] - Curve parameter that defines start of parametric region of the curve corresponding to the edge.
end_par
[out] - Curve parameter that defines end of parametric region of the curve corresponding to the edge.

Errors

None.