![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
Represents a static collection of 3D triangles and associated vertex/UV data. More...
#include <StaticTriangleGroup.h>
Public Member Functions | |
StaticTriangleGroup (Vector3D *vertices, const IndexGroup *indexGroup) | |
Constructor for a group without UV data. | |
StaticTriangleGroup (Vector3D *vertices, const IndexGroup *indexGroup, const IndexGroup *uvIndexGroup, const Vector2D *uvVertices) | |
Constructor for a group with UV data. | |
const bool | HasUV () override |
Checks if the group has UV data. | |
const IndexGroup * | GetIndexGroup () override |
Retrieves the triangle index group. | |
const int | GetTriangleCount () override |
Gets the total number of triangles in the group. | |
Vector3D * | GetVertices () override |
Retrieves the array of vertex positions. | |
const int | GetVertexCount () override |
Gets the total number of vertices in the group. | |
Triangle3D * | GetTriangles () override |
Retrieves the array of triangles in the group. | |
const Vector2D * | GetUVVertices () override |
Retrieves the array of UV coordinates. | |
const IndexGroup * | GetUVIndexGroup () override |
Retrieves the UV index group. | |
Private Attributes | |
Triangle3D | triangles [triangleCount] |
Array of 3D triangles in the group. | |
Vector3D * | vertices |
Array of vertex positions. | |
const IndexGroup * | indexGroup |
Index group defining triangle vertex indices. | |
const IndexGroup * | uvIndexGroup |
Index group for UV coordinates (if available). | |
const Vector2D * | uvVertices |
Array of UV coordinates for texture mapping. | |
const bool | hasUVB |
Indicates whether the group contains UV data. | |
Represents a static collection of 3D triangles and associated vertex/UV data.
vertexCount | Number of vertices in the group. |
triangleCount | Number of triangles in the group. |
Definition at line 29 of file StaticTriangleGroup.h.
StaticTriangleGroup | ( | Vector3D * | vertices, |
const IndexGroup * | indexGroup | ||
) |
Constructor for a group without UV data.
vertices | Array of vertex positions. |
indexGroup | Index group defining triangle vertex indices. |
StaticTriangleGroup | ( | Vector3D * | vertices, |
const IndexGroup * | indexGroup, | ||
const IndexGroup * | uvIndexGroup, | ||
const Vector2D * | uvVertices | ||
) |
Constructor for a group with UV data.
vertices | Array of vertex positions. |
indexGroup | Index group defining triangle vertex indices. |
uvIndexGroup | Index group for UV coordinates. |
uvVertices | Array of UV coordinates for texture mapping. |
|
overridevirtual |
Retrieves the triangle index group.
Implements IStaticTriangleGroup.
Gets the total number of triangles in the group.
Implements IStaticTriangleGroup.
|
overridevirtual |
Retrieves the array of triangles in the group.
Implements IStaticTriangleGroup.
|
overridevirtual |
Retrieves the UV index group.
Implements IStaticTriangleGroup.
Retrieves the array of UV coordinates.
Implements IStaticTriangleGroup.
Gets the total number of vertices in the group.
Implements IStaticTriangleGroup.
Retrieves the array of vertex positions.
Implements IStaticTriangleGroup.
Checks if the group has UV data.
Implements IStaticTriangleGroup.
Indicates whether the group contains UV data.
Definition at line 36 of file StaticTriangleGroup.h.
|
private |
Index group defining triangle vertex indices.
Definition at line 33 of file StaticTriangleGroup.h.
|
private |
Array of 3D triangles in the group.
Definition at line 31 of file StaticTriangleGroup.h.
|
private |
Index group for UV coordinates (if available).
Definition at line 34 of file StaticTriangleGroup.h.
Array of UV coordinates for texture mapping.
Definition at line 35 of file StaticTriangleGroup.h.
Array of vertex positions.
Definition at line 32 of file StaticTriangleGroup.h.