![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Utility class for extracting and applying materials from mesh. More...
#include <MeshMaterialExtractor.h>
Static Public Member Functions | |
| static bool | ApplyMaterialFromMesh (vtkLODActor *actor, const ccGenericMesh *mesh, vtkPolyData *polydata, TextureRenderManager *render_manager, class vtkRenderer *renderer=nullptr) |
| Extract and apply material from ccMesh to actor. More... | |
Utility class for extracting and applying materials from mesh.
Handles material extraction from ccGenericMesh and application to VTK actors.
Definition at line 24 of file MeshMaterialExtractor.h.
|
static |
Extract and apply material from ccMesh to actor.
| actor | VTK actor to apply material to |
| mesh | ccMesh object containing materials |
| polydata | Polygon data (for texture coordinates) |
| render_manager | Texture render manager for applying materials |
| renderer | VTK renderer (optional) |
Definition at line 26 of file MeshMaterialExtractor.cpp.
References ccMaterialSet::addMaterial(), PclUtils::renders::TextureRenderManager::Apply(), CVLog::Error(), ccDrawableObject::hasColors(), CVLog::Print(), and CVLog::Warning().