Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::ArticulatedModel::MeshMergeCallback Class Reference

Merges meshes within the part based on their Materials. More...

Inherits G3D::ArticulatedModel::PartCallback.

Public Member Functions

 MeshMergeCallback (float r, float t)
 
virtual void operator() (ArticulatedModel::Part *part, const CFrame &worldToPartFrame, shared_ptr< ArticulatedModel > m, const int treeDepth) override
 Override to implement processing of part. More...
 

Public Attributes

float opaqueRadius
 
float transmissiveRadius
 

Detailed Description

Merges meshes within the part based on their Materials.

Does not update bounds or GPU VertexRanges.

Constructor & Destructor Documentation

◆ MeshMergeCallback()

G3D::ArticulatedModel::MeshMergeCallback::MeshMergeCallback ( float  r,
float  t 
)
inline

Member Function Documentation

◆ operator()()

virtual void G3D::ArticulatedModel::MeshMergeCallback::operator() ( ArticulatedModel::Part part,
const CFrame worldToPartFrame,
shared_ptr< ArticulatedModel model,
const int  treeDepth 
)
overridevirtual

Override to implement processing of part.

Parameters
worldToPartFrameThe net transformation in this pose from world space to part's object space
treeDepthdepth in the hierarchy. 0 = a root

Implements G3D::ArticulatedModel::PartCallback.

Member Data Documentation

◆ opaqueRadius

float G3D::ArticulatedModel::MeshMergeCallback::opaqueRadius

◆ transmissiveRadius

float G3D::ArticulatedModel::MeshMergeCallback::transmissiveRadius

documentation generated on Wed Nov 24 2021 08:01:53 using doxygen 1.8.15