Isle
Loading...
Searching...
No Matches
Tgl::MeshBuilder Class Referenceabstract

[AI] Builder class for assembling mesh data and extracting mesh objects. More...

#include <tgl.h>

Inheritance diagram for Tgl::MeshBuilder:
Collaboration diagram for Tgl::MeshBuilder:

Public Member Functions

virtual MeshCreateMesh (unsigned long faceCount, unsigned long vertexCount, float(*pPositions)[3], float(*pNormals)[3], float(*pTextureCoordinates)[2], unsigned long(*pFaceIndices)[3], unsigned long(*pTextureIndices)[3], ShadingModel shadingModel)=0
 [AI] Creates a mesh from supplied geometry data. More...
 
virtual Result GetBoundingBox (float min[3], float max[3]) const =0
 [AI] Gets the bounding box for the constructed mesh geometry. More...
 
virtual MeshBuilderClone ()=0
 [AI] Makes a copy of the mesh builder instance (deep copy). More...
 
- Public Member Functions inherited from Tgl::Object
virtual ~Object ()
 [AI] Destructor; releases resources. More...
 
virtual void * ImplementationDataPtr ()=0
 [AI] Returns a pointer to internal/implementation data, if any. More...
 

Detailed Description

[AI] Builder class for assembling mesh data and extracting mesh objects.

[AI_SUGGESTED_NAME: MeshBuilder]

[AI] Not present in original leaked Tgl code; inferred as a mesh construction/conversion utility for geometry. [AI]

Definition at line 768 of file tgl.h.

Member Function Documentation

◆ Clone()

virtual MeshBuilder * Tgl::MeshBuilder::Clone ( )
pure virtual

[AI] Makes a copy of the mesh builder instance (deep copy).

[AI]

Returns
MeshBuilder* Cloned mesh builder. [AI]

Implemented in TglImpl::MeshBuilderImpl.

◆ CreateMesh()

virtual Mesh * Tgl::MeshBuilder::CreateMesh ( unsigned long  faceCount,
unsigned long  vertexCount,
float(*)  pPositions[3],
float(*)  pNormals[3],
float(*)  pTextureCoordinates[2],
unsigned long(*)  pFaceIndices[3],
unsigned long(*)  pTextureIndices[3],
ShadingModel  shadingModel 
)
pure virtual

[AI] Creates a mesh from supplied geometry data.

[AI]

Parameters
faceCountNumber of triangular faces. [AI]
vertexCountNumber of vertices. [AI]
pPositionsVertex positions (array of [3] floats per vertex). [AI]
pNormalsVertex normals (array of [3] floats per vertex). [AI]
pTextureCoordinatesArray of [2] float texture coords per vertex. [AI]
pFaceIndicesIndices (vertex indices) for each face, [3] per face. [AI]
pTextureIndicesPer-face per-corner texture indices. [AI]
shadingModelShading style for new mesh. [AI]
Returns
Mesh* Created mesh object. [AI]

Implemented in TglImpl::MeshBuilderImpl.

◆ GetBoundingBox()

virtual Result Tgl::MeshBuilder::GetBoundingBox ( float  min[3],
float  max[3] 
) const
pure virtual

[AI] Gets the bounding box for the constructed mesh geometry.

[AI]

Parameters
minOutput min x,y,z. [AI]
maxOutput max x,y,z. [AI]
Returns
Result Success or Error. [AI]

Implemented in TglImpl::MeshBuilderImpl.


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