![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Utility class for applying textures to mesh actors. More...
#include <MeshTextureApplier.h>
Static Public Member Functions | |
| static bool | ApplyTexturesFromCCMesh (vtkLODActor *actor, ccGenericMesh *mesh, vtkPolyData *polydata, TextureRenderManager *render_manager, vtkRenderer *renderer) |
| Apply textures from ccGenericMesh (preferred method) More... | |
| static bool | ApplyTexturesFromMaterialSet (vtkLODActor *actor, const ccMaterialSet *materials, const std::vector< std::vector< Eigen::Vector2f >> &tex_coordinates, vtkPolyData *polydata, TextureRenderManager *render_manager, vtkRenderer *renderer) |
| Apply textures from ccMaterialSet with texture coordinates. More... | |
| static bool | ApplyPBRTextures (vtkLODActor *actor, const pcl::TextureMesh &mesh, vtkPolyData *polydata, TextureRenderManager *render_manager, vtkRenderer *renderer) |
| Apply PBR textures from PCLTextureMesh (deprecated) More... | |
| static bool | ApplyTraditionalTextures (vtkLODActor *actor, const pcl::TextureMesh &mesh, vtkPolyData *polydata, vtkRenderWindow *render_window) |
| Apply textures from PCLTextureMesh to actor (traditional path) More... | |
Utility class for applying textures to mesh actors.
Handles texture application from mesh to VTK actors. Supports both PCLTextureMesh (legacy) and ccGenericMesh (preferred) sources.
Definition at line 34 of file MeshTextureApplier.h.
|
static |
Apply PBR textures from PCLTextureMesh (deprecated)
Definition at line 250 of file MeshTextureApplier.cpp.
References ccMaterialSet::addMaterial(), ApplyTexturesFromMaterialSet(), pcl2cc::FromPCLMaterial(), and CVLog::Print().
Referenced by PclUtils::PCLVis::addTextureMesh().
|
static |
Apply textures from ccGenericMesh (preferred method)
| actor | VTK actor to apply textures to |
| mesh | ccGenericMesh containing materials and texture coordinates |
| polydata | Polygon data (for texture coordinates) |
| render_manager | Texture render manager for applying materials |
| renderer | VTK renderer (optional) |
Definition at line 46 of file MeshTextureApplier.cpp.
References ApplyTexturesFromMaterialSet(), CVLog::Error(), ccGenericMesh::getAssociatedCloud(), ccGenericMesh::getMaterialSet(), cc2smReader::getVtkPolyDataWithTextures(), CVLog::Print(), ccHObjectCaster::ToPointCloud(), and CVLog::Warning().
|
static |
Apply textures from ccMaterialSet with texture coordinates.
| actor | VTK actor to apply textures to |
| materials | Material set containing texture information |
| tex_coordinates | Texture coordinates per material |
| polydata | Polygon data (for texture coordinates) |
| render_manager | Texture render manager for applying materials |
| renderer | VTK renderer (optional) |
Definition at line 111 of file MeshTextureApplier.cpp.
References PclUtils::renders::TextureRenderManager::Apply(), CVLog::PrintDebug(), and CVLog::Warning().
Referenced by PclUtils::PCLVis::addTextureMeshFromCCMesh(), ApplyPBRTextures(), and ApplyTexturesFromCCMesh().
|
static |
Apply textures from PCLTextureMesh to actor (traditional path)
Definition at line 294 of file MeshTextureApplier.cpp.
References CVLog::Warning().