![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
Represents a dynamic group of 3D triangles. More...
#include <TriangleGroup.h>
Public Member Functions | |
TriangleGroup (IStaticTriangleGroup *triangleGroup) | |
Constructs a TriangleGroup from a static triangle group. | |
const IndexGroup * | GetIndexGroup () override |
Gets the index group defining triangle vertices. | |
int | GetTriangleCount () override |
Gets the number of triangles in the group. | |
Vector3D * | GetVertices () override |
Gets the array of vertices in the group. | |
int | GetVertexCount () override |
Gets the number of vertices in the group. | |
Triangle3D * | GetTriangles () override |
Gets the array of triangles in the group. | |
const Vector2D * | GetUVVertices () override |
Gets the array of UV vertices in the group. | |
const IndexGroup * | GetUVIndexGroup () override |
Gets the UV index group defining texture coordinates. | |
Private Attributes | |
Triangle3D | triangles [triangleCount] |
Array of triangles in the group. | |
Vector3D | vertices [vertexCount] |
Array of vertices in the group. | |
const IndexGroup * | indexGroup |
Pointer to the index group defining triangle vertices. | |
const IndexGroup * | uvIndexGroup |
Pointer to the UV index group defining texture coordinates. | |
const Vector2D * | uvVertices |
Pointer to the array of UV coordinates. | |
bool | hasUV = false |
Indicates whether UV mapping is enabled. | |
Represents a dynamic group of 3D triangles.
This class allows manipulation of a group of triangles based on a static triangle group. It supports optional UV mapping and provides methods to retrieve triangle and vertex data.
vertexCount | Number of vertices in the group. |
triangleCount | Number of triangles in the group. |
Definition at line 31 of file TriangleGroup.h.
TriangleGroup | ( | IStaticTriangleGroup< vertexCount, triangleCount > * | triangleGroup | ) |
Constructs a TriangleGroup from a static triangle group.
triangleGroup | Pointer to a static triangle group to initialize this group. |
|
overridevirtual |
Gets the index group defining triangle vertices.
Implements ITriangleGroup.
|
overridevirtual |
Gets the array of triangles in the group.
Implements ITriangleGroup.
|
overridevirtual |
Gets the UV index group defining texture coordinates.
Implements ITriangleGroup.
Gets the array of UV vertices in the group.
Implements ITriangleGroup.
Gets the array of vertices in the group.
Implements ITriangleGroup.
Indicates whether UV mapping is enabled.
Definition at line 38 of file TriangleGroup.h.
|
private |
Pointer to the index group defining triangle vertices.
Definition at line 35 of file TriangleGroup.h.
|
private |
Array of triangles in the group.
Definition at line 33 of file TriangleGroup.h.
|
private |
Pointer to the UV index group defining texture coordinates.
Definition at line 36 of file TriangleGroup.h.
Pointer to the array of UV coordinates.
Definition at line 37 of file TriangleGroup.h.
|
private |
Array of vertices in the group.
Definition at line 34 of file TriangleGroup.h.