#include <lib_ngon.h>
Public Member Functions | |
Bool | IsFirst () |
Bool | IsSegmentEnd () |
Int32 | ID () |
Int32 | State () |
Int32 | Edge () |
Int32 | EdgeIndex () |
void | GetEdge (const CPolygon *vadr, Int32 &p1, Int32 &p2) |
void | RemapPolygon (Int32 new_poly, Int32 new_edge) |
Public Attributes | |
UInt32 | edge_index |
Bool IsFirst | ( | ) |
Checks if the polygon ID is the first occurrence in the array. This is useful to know which polygons form the N-gon.
Bool IsSegmentEnd | ( | ) |
Checks if the edge is the last in a segment.
Int32 ID | ( | ) |
Gets the polygon ID.
Int32 State | ( | ) |
Gets the edge state.
Int32 EdgeIndex | ( | ) |
Gets the edge index.
Retrieves in p1 and p2 the point IDs for the edge or NOTINDEX if it is not an N-gon edge.
[in] | vadr | The polygon array. The caller owns the pointed array. |
[out] | p1 | Assigned the first point ID. |
[out] | p2 | Assigned the second point ID. |
Sets the polygon ID and edge ID for the edge. Pass NOTINDEX to make no change.
[in] | new_poly | The new polygon ID. |
[in] | new_edge | The new edge ID. |
UInt32 edge_index |
Edge index.