HM_ExtAPI::GeomEdgeGetVertex()

Returns vertex of the edge.

Syntax

bool GeomEdgeGetVertex(
const HM_EntityGeomEdge & edge,
bool at_end,
HM_EntityGeomVertex  & vert
);

Type

HyperMesh Ext API Function

Description

Currently in HyperMesh database only edges connected to faces have vertices. For edges that do not have any faces connected ("free lines") the function returns false and the value of vert is set to NULL. 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 edge object that defines geometry of the edge.
at_end
[out] - The flag that specifies one of two ends of the edge. The value of true specifies the edge start. The value of false specifies the edge end.
vert
[out] - The handle to the vertex at specified edge end.

Errors

None.