HM_ExtAPI::GeomCoedgeGetGeometry()

Returns 2d curve that defines coedge geometry.

Syntax

bool GeomCoedgeGetGeometry(
const HM_EntityGeomCoedge & coedge,
HM_EntityGeometryCurve& curve2d,
double& start_par,
double& end_par
);

Type

HyperMesh Ext API Function

Description

The curve that defines geometry of the coedge is a 2D curve in parametric space of the surface that defines geometry of the face associated with the coedge. Properties of 2D curves can be queried using the same function of the API that are used to interrogate properties of 3D curves. The difference is that the points and vectors that define geometry of 2D curves have zero Z coordinate, and X and Y coordinates of points correspond to U and V parametric surface coordinates respectively.

Use the function HM_ExtAPI::GeomEdgeGetGeometry() to query 3D curve geometry associated with the coedge.

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

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

Errors

None.