TDME2 1.9.121
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Static Private Member Functions | List of all members
ModelUtilitiesInternal Class Reference

Model utilities. More...

#include <tdme/engine/subsystems/rendering/ModelUtilitiesInternal.h>

Inheritance diagram for ModelUtilitiesInternal:
Inheritance graph
Collaboration diagram for ModelUtilitiesInternal:
Collaboration graph

Static Public Member Functions

static BoundingBoxcreateBoundingBox (Model *model, const map< string, Matrix4x4 * > overriddenNodeTransformationsMatrices=map< string, Matrix4x4 * >())
 Creates a bounding box from given model. More...
 
static void invertNormals (Model *model)
 Invert normals of a model. More...
 
static void computeModelStatistics (Model *model, ModelStatistics *modelStatistics)
 Compute model statistics. More...
 
static void computeModelStatistics (Object3DModelInternal *object3DModelInternal, ModelStatistics *modelStatistics)
 Compute model statistics. More...
 
static bool equals (Model *model1, Model *model2)
 Compute if model 1 equals model 2. More...
 
static bool equals (Object3DModelInternal *object3DModel1Internal, Object3DModelInternal *object3DModel2Internal)
 Compute if model 1 equals model 2. More...
 

Static Private Member Functions

static BoundingBoxcreateBoundingBox (Object3DModelInternal *object3DModelInternal)
 Creates a bounding box from given object3d model. More...
 
static BoundingBoxcreateBoundingBoxNoMesh (Object3DModelInternal *object3DModelInternal)
 Creates a bounding box from given object3d model without mesh. More...
 
static void invertNormals (const map< string, Node * > &nodes)
 Invert normals recursive. More...
 

Detailed Description

Model utilities.

Author
Andreas Drewke
Version
$Id$

Definition at line 29 of file ModelUtilitiesInternal.h.

Member Function Documentation

◆ computeModelStatistics() [1/2]

void computeModelStatistics ( Model model,
ModelStatistics modelStatistics 
)
static

Compute model statistics.

Parameters
modelmodel
modelStatisticsmodel statistics

Definition at line 174 of file ModelUtilitiesInternal.cpp.

◆ computeModelStatistics() [2/2]

void computeModelStatistics ( Object3DModelInternal object3DModelInternal,
ModelStatistics modelStatistics 
)
static

Compute model statistics.

Parameters
object3DModelInternalobject 3d model internal
modelStatisticsmodel statistics

Definition at line 180 of file ModelUtilitiesInternal.cpp.

◆ createBoundingBox() [1/2]

BoundingBox * createBoundingBox ( Model model,
const map< string, Matrix4x4 * >  overriddenNodeTransformationsMatrices = map<string, Matrix4x4*>() 
)
static

Creates a bounding box from given model.

Parameters
modelmodel
overriddenNodeTransformationsMatricesoverridden node transformations matrices
Returns
axis aligned bounding box

Definition at line 45 of file ModelUtilitiesInternal.cpp.

◆ createBoundingBox() [2/2]

BoundingBox * createBoundingBox ( Object3DModelInternal object3DModelInternal)
staticprivate

Creates a bounding box from given object3d model.

Parameters
object3DModelInternalmodel
Returns
axis aligned bounding box

Definition at line 54 of file ModelUtilitiesInternal.cpp.

◆ createBoundingBoxNoMesh()

BoundingBox * createBoundingBoxNoMesh ( Object3DModelInternal object3DModelInternal)
staticprivate

Creates a bounding box from given object3d model without mesh.

Parameters
object3DModelInternalmodel
Returns
boundingBox axis aligned bounding box

Definition at line 105 of file ModelUtilitiesInternal.cpp.

◆ equals() [1/2]

bool equals ( Model model1,
Model model2 
)
static

Compute if model 1 equals model 2.

Parameters
model1model 1
model2model 2
Returns
model1 equals model2

Definition at line 224 of file ModelUtilitiesInternal.cpp.

◆ equals() [2/2]

bool equals ( Object3DModelInternal object3DModel1Internal,
Object3DModelInternal object3DModel2Internal 
)
static

Compute if model 1 equals model 2.

Parameters
object3DModel1Internalmodel 1
object3DModel2Internalmodel 2
Returns
model1 equals model2

Definition at line 231 of file ModelUtilitiesInternal.cpp.

◆ invertNormals() [1/2]

void invertNormals ( const map< string, Node * > &  nodes)
staticprivate

Invert normals recursive.

Parameters
nodesnodes

Definition at line 159 of file ModelUtilitiesInternal.cpp.

◆ invertNormals() [2/2]

void invertNormals ( Model model)
static

Invert normals of a model.

Parameters
modelmodel

Definition at line 154 of file ModelUtilitiesInternal.cpp.


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