#include <lib_ngon.h>
Public Member Functions | |
| Bool | IsFirst () const |
| Bool | IsSegmentEnd () const |
| Int32 | ID () const |
| Int32 | State () const |
| Int32 | Edge () const |
| Int32 | EdgeIndex () const |
| void | GetEdge (const CPolygon *vadr, Int32 &p1, Int32 &p2) const |
| void | RemapPolygon (Int32 new_poly, Int32 new_edge) |
Public Attributes | |
| UInt32 | edge_index |
| Bool IsFirst | ( | ) | const |
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 | ( | ) | const |
Checks if the edge is the last in a segment.
| Int32 ID | ( | ) | const |
Gets the polygon ID.
| Int32 State | ( | ) | const |
Gets the edge state.
| Int32 Edge | ( | ) | const |
Gets the edge for the polygon.
| Int32 EdgeIndex | ( | ) | const |
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.