HM_ExtAPI::GeomCoedgeGetNextInLoop()
Returns next coedge in the face loop.
Syntax
bool GeomCoedgeGetNextInLoop(
const HM_EntityGeomCoedge & coedge,
bool face_sense,
bool forward,
HM_EntityGeomCoedge& next_coedge,
bool& next_face_sense
);
Type
HyperMesh Ext API Function
Description
Each face loop has a direction defined in such a way that the loop is counter clockwise with respect to an outward pointing face normal. In other words, in a view where the face normal is directed towards the observer the loop would have the face area on the left side.
Coedges that form the loop can have the face on either of their two sides.
It is possible that a coedge has the same face on both of its sides. In this case this coedge is encountered twice during the traversal of the face loop. The combination of the coedge and its side is necessary to identify coedge position within the loop uniquely.
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.
- face_sense
- [in] - The flag that indicates the side of the coedge at which the coedge face is connected. The value of true indicates that the face is on the left side of the coedge. The value of false indicates that the face is on the right side of the coedge.
- forward
- [in] - The flag that indicates direction to search for the next coedge within the loop. The value of true indicates that the direction of search coincides with the loop direction. The value of false indicates that the direction of search is opposite to the loop direction.
- next_coedge
- [out] - The handle to the next coedge.
- next_face_sense
- [out] - The flag that indicates the side of the next coedge at which associated face is connected. The value of true indicates that the face is on the left side of the next coedge. The value of false indicates that the face is on the right side of the coedge.
Errors
None.