#include <polymesh.h>
Public Types | |
| enum | DATA { POLYUVWMESH_UVW = 100, COLOR = 200, USER = 300 } |
| enum | FLAGS { USER_FLAGS = (1<<16) } |
Public Member Functions | |
| PolyUVWMesh () | |
| void | DeleteThis () |
| Deletes this class. | |
| void | SetNumTVerts (int n_tv) |
| int | GetNumTVerts () |
| Returns the number of tverts. | |
| void | SetTVert (int i_tv, float x, float y, float z) |
| void | SetTVert (int i_tv, GMT::Point3F tv) |
| Vert | GetTVert (int i_v) |
| GMT::Point3F | GetTVertPosition (int i_v) |
| void | SetNumTFaces (int n_tf) |
| int | GetNumTFaces () |
| Returns the number of tfaces. | |
| int | Save (SceneSave *scene_save) |
| Saves the info for this class. | |
| int | Load (SceneLoad *scene_load) |
| Loads the info for this class. | |
Public Attributes | |
| PolyUVWFace * | tfaces |
| The faces for this mesh. | |
| Vert * | tverts |
| The array of verts. | |
| int | num_tverts |
| The number of verts. | |
| int | num_tfaces |
| The number of faces. | |
Please add comments here
Enum Data Please add comments here
Enum FLAGS Enum all the possible states for PolyUVWMesh
| ScEng::PolyUVWMesh::PolyUVWMesh | ( | ) |
Constructor Sets the number of tverts and tfaces to 0, and sets the tfaces and tverts arrays to NULL.
| void ScEng::PolyUVWMesh::SetNumTVerts | ( | int | n_tv | ) |
Sets the number of tverts Deletes the current vertex info, sets the number of tverts and allocates the memory for the tverts array.
| n_tv | the new number of tverts |
| void ScEng::PolyUVWMesh::SetTVert | ( | int | i_tv, | |
| float | x, | |||
| float | y, | |||
| float | z | |||
| ) |
Sets a tvert
| i_tv | the index for the tvert | |
| x | the x position for the tvert | |
| y | the y position for the tvert | |
| z | the z position for the tvert |
| void ScEng::PolyUVWMesh::SetTVert | ( | int | i_tv, | |
| GMT::Point3F | tv | |||
| ) |
Sets a tvert
| i_tv | the index for the tvert | |
| tv | the position of the vert |
| Vert ScEng::PolyUVWMesh::GetTVert | ( | int | i_v | ) |
Returns the specific tvert
| i_v | the index for the tvert in the tverts array |
| GMT::Point3F ScEng::PolyUVWMesh::GetTVertPosition | ( | int | i_v | ) |
Retunrs the position for the specific tvert
| i_v | the index for the tvert in the tverts array |
| void ScEng::PolyUVWMesh::SetNumTFaces | ( | int | n_tf | ) |
Sets the number of tfaces Deletes the current faces info, sets the number of tfaces and allocates the memory for the tfaces array.
| n_tf | the new number of tfaces |
1.5.1-p1