#include <polymesh.h>
Public Types | |
| enum | FLAGS { USER = (1<<16) } |
Public Member Functions | |
| PolyFace () | |
| ~PolyFace () | |
| Destructor. | |
| void | SetEdgeVisibility (int i, bool vis) |
| Sets the visibility for a specified edge. | |
| void | SetDeg (int degree) |
| void | DeleteData () |
| void | SetVerts (int i_v, int vert) |
| void | SetMaterialID (unsigned short m_id) |
| Sets the material ID for this face. | |
| void | SetSmoothingGroups (unsigned int sg) |
| Sets the smoothing group for this face. | |
| void | SetNumTriangulation (int nt) |
| void | SetTriangulationID (int i, int id) |
| void | SetTriangulation (std::vector< int > &triangles) |
| void | ReplaceVert (int ov, int nv) |
| void | DeleteThis () |
| Deletes this class. | |
| unsigned int | GetSmoothingGroup () |
| Returns the smoothing group for this face. | |
| unsigned short | GetMaterialID () |
| Returns the material id for this face. | |
| PolyFace & | operator= (const PolyFace &pf) |
| Assignment operator. | |
Public Attributes | |
| unsigned short | material_id |
| The id for the material used by this face. | |
| unsigned int | smoothing_groups |
| The smoothing group for this face. | |
| int * | v |
| The array with the indexes used by this face. | |
| unsigned int * | edge_flags |
| A bitarray that stores the hard or smooth flags for each edge of the face. | |
| unsigned short | deg |
| unsigned short | num_triangulation |
| The number of the elements in the triangulation data array. | |
| unsigned short * | triangulation |
| The array that holds the triangulation indexes. | |
| int | user_data |
| Variable reserved for the user. | |
Please add comments here
Enum FLAGS Enum all the possible states for this PolyFace
| ScEng::PolyFace::PolyFace | ( | ) |
Constructor Sets the verts and triangulation array to NULL
| void ScEng::PolyFace::SetEdgeVisibility | ( | int | i, | |
| bool | vis | |||
| ) |
Sets the visibility for a specified edge.
| i | the index for the edge | |
| vis | the boolean value for the visibility of this edge |
| void ScEng::PolyFace::SetDeg | ( | int | degree | ) |
Sets the degree for this face Deletes the current data and generate a new vertex array, using the given degree.
| degree | the new degree for this face |
| void ScEng::PolyFace::DeleteData | ( | ) |
Deletes the data of this face Deletes the triangulation and verts arrays, and sets the number of verts and the number of triangulation to 0.
| void ScEng::PolyFace::SetVerts | ( | int | i_v, | |
| int | vert | |||
| ) |
Sets a vert
| i_v | the index for the verts in the verts array | |
| vert | the ID for the vert |
| void ScEng::PolyFace::SetNumTriangulation | ( | int | nt | ) |
Sets the number of triangulation for this face Deletes the current data and generate a new triangulation array, using the given argument.
| nt | the new number of triangulation for this face |
| void ScEng::PolyFace::SetTriangulationID | ( | int | i, | |
| int | id | |||
| ) |
Sets a triangulation ID
| i | the index for the triangulation in the triangulation array | |
| id | the ID for the triangulation |
| void ScEng::PolyFace::SetTriangulation | ( | std::vector< int > & | triangles | ) |
Sets the triangulation for this face using an integer vector. param triangles The size of the triangulations is set to triangles.size() and the ids to the elements of the vector.
| void ScEng::PolyFace::ReplaceVert | ( | int | ov, | |
| int | nv | |||
| ) |
Replaces a vertex This method receives the index of the old vertex and the index of the new vertex and searches in all the vertices and replaces the old one with the new one.
| ov | the old vertex to be replaced | |
| nv | the new vertex to replace the old |
| unsigned short ScEng::PolyFace::deg |
The degree for this face The degree indicates the number of verts for this face
1.5.1-p1