ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
ITriangleGroup Class Referenceabstract

Interface for managing a dynamic group of 3D triangles and associated data. More...

#include <ITriangleGroup.h>

Inheritance diagram for ITriangleGroup:

Public Member Functions

virtual const IndexGroupGetIndexGroup ()=0
 Retrieves the index group for the triangle group.
 
virtual int GetTriangleCount ()=0
 Retrieves the total number of triangles in the group.
 
virtual Vector3DGetVertices ()=0
 Retrieves the array of mutable vertices in the triangle group.
 
virtual int GetVertexCount ()=0
 Retrieves the total number of vertices in the group.
 
virtual Triangle3DGetTriangles ()=0
 Retrieves the array of Triangle3D objects representing the triangles.
 
virtual const Vector2DGetUVVertices ()=0
 Retrieves the array of UV vertices in the triangle group.
 
virtual const IndexGroupGetUVIndexGroup ()=0
 Retrieves the index group for the UV vertices.
 

Detailed Description

Interface for managing a dynamic group of 3D triangles and associated data.

Definition at line 23 of file ITriangleGroup.h.

Member Function Documentation

◆ GetIndexGroup()

virtual const IndexGroup * GetIndexGroup ( )
pure virtual

Retrieves the index group for the triangle group.

Returns
A pointer to the IndexGroup array.

Implemented in TriangleGroup< vertexCount, triangleCount >.

◆ GetTriangleCount()

virtual int GetTriangleCount ( )
pure virtual

Retrieves the total number of triangles in the group.

Returns
The number of triangles.

Implemented in TriangleGroup< vertexCount, triangleCount >.

Referenced by Rasterizer::Rasterize().

◆ GetTriangles()

virtual Triangle3D * GetTriangles ( )
pure virtual

Retrieves the array of Triangle3D objects representing the triangles.

Returns
A pointer to the array of Triangle3D objects.

Implemented in TriangleGroup< vertexCount, triangleCount >.

Referenced by ObjectAlign::GetPlaneNormal(), VectorField2D::ObjectField(), and Rasterizer::Rasterize().

◆ GetUVIndexGroup()

virtual const IndexGroup * GetUVIndexGroup ( )
pure virtual

Retrieves the index group for the UV vertices.

Returns
A pointer to the IndexGroup array for UV vertices.

Implemented in TriangleGroup< vertexCount, triangleCount >.

◆ GetUVVertices()

virtual const Vector2D * GetUVVertices ( )
pure virtual

Retrieves the array of UV vertices in the triangle group.

Returns
A pointer to the array of Vector2D UV vertices.

Implemented in TriangleGroup< vertexCount, triangleCount >.

◆ GetVertexCount()

◆ GetVertices()


The documentation for this class was generated from the following file: