Returns number of face "wings" connected to the edge.


bool GeomEdgeGetCoedgesCount(
const HM_EntityGeomEdge & edge,
int& coedge_count


HyperMesh Ext API Function


When one or more faces are connected at common edge then connection of the edge to each of the faces is represented by coedge entity associated with this face. Each of coedges has corresponding face on one of its sides. It is also possible for a coedge to have faces on both sides. In some cases a coedge can have the same face on both sides. In these cases the same coedge corresponds to topologically distinct face "wings" that are connected to the common edge.

The function GeomEdgeGetCoedgesCount returns the number of face "wings", which in general case may not coincide with the number of unique coedges connected to the edge.

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.


[in] - Handle to edge object that was returned by previous calls to API functions.
[out] - Number of connected face "wings".