#include <polymesh.h>
Public Member Functions | |
| Poly () | |
| ~Poly () | |
| Destructor. | |
| void | SetDeg (int degree) |
| void | SetID (int i, int new_id) |
| void | DeleteData () |
| Deletes the vertex array and sets the degree to 0. | |
Public Attributes | |
| unsigned short | deg |
| int * | v |
| The indexes for the verts used for this polygon. | |
Please add comments here
| ScEng::Poly::Poly | ( | ) |
Constructor Sets the deg to 0 and the verts array to NULL
| void ScEng::Poly::SetDeg | ( | int | degree | ) |
Sets the degree for this polygon Deletes the current data and generate a new vertex array, using the given degree.
| degree | the new degree for this polygon |
| void ScEng::Poly::SetID | ( | int | i, | |
| int | new_id | |||
| ) |
Sets a vertex ID
| i | the index in the vertex array | |
| new_id | the id for the vertex used for this polygon |
| unsigned short ScEng::Poly::deg |
The degree for this polygon The degree indicates the number of verts for this polygon
1.5.1-p1