HM_ExtAPI::GeomVertexGetEdges()

Returns edges connected to the vertex.

Syntax

bool GeomVertexGetEdges(
const HM_EntityGeomVertex & vertex,
int& edges_count,
HM_EntityGeomEdge * & edges,
bool*& edge_senses
);

Type

HyperMesh Ext API Function

Description

The edges connected to the vertex both at their start and at their end are returned twice.

To free arrays allocated for edges and edge_senses during the function call use the function HM_ExtAPI::MemoryFree.

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

vertex
[in] - Handle to vertex object that was returned by previous calls to API functions.
edges_count
[out] - Number of edges.
edges
[out] - Returns pointer to array of handles to edges. The number of values in the array is edges_count. The pointer is NULL if the vertex is not connected to any edges.
edge_senses
[out] - Returns pointer to array of flags that indicate edge side with respect to vertex connection. The number of values in the array is edges_count. The pointer is NULL if the vertex is not connected to any edges. The value of true indicates that corresponding edge is connected to the vertex by its end. The value of false indicates that corresponding edge is connected to the vertex by its start.

Errors

None.