Mesh::MeshTexture Class Reference

#include <MeshTexture.h>

Public Member Functions

void apply (const Mesh::MeshObject &mesh, const App::Color &defaultColor, float max_dist, MeshCore::Material &material)
 
void apply (const Mesh::MeshObject &mesh, const App::Color &defaultColor, MeshCore::Material &material)
 
void apply (const Mesh::MeshObject &mesh, float max_dist, MeshCore::Material &material)
 
void apply (const Mesh::MeshObject &mesh, MeshCore::Material &material)
 
 MeshTexture (const Mesh::MeshObject &mesh, const MeshCore::Material &material)
 

Detailed Description

The MeshTexture class. This algorithm is useful to update the material after a mesh has been modified by removing points or facets. If the coordinates of points have changed or if new points have been added then a predefined color will be set.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ MeshTexture()

MeshTexture::MeshTexture ( const Mesh::MeshObject mesh,
const MeshCore::Material material 
)

A mesh with material. The number of points or facets must match with the number of colors.

References MeshCore::Material::binding, MeshCore::Material::diffuseColor, MeshCore::MeshIO::PER_FACE, and MeshCore::MeshIO::PER_VERTEX.

Member Function Documentation

◆ apply() [1/4]

void MeshTexture::apply ( const Mesh::MeshObject mesh,
const App::Color defaultColor,
float  max_dist,
MeshCore::Material material 
)

Find common points or facets of this to the original mesh. For points or facets that don't match defaultColor will be used instead, otherwise the color of the original material is used.

References apply().

◆ apply() [2/4]

void MeshTexture::apply ( const Mesh::MeshObject mesh,
const App::Color defaultColor,
MeshCore::Material material 
)

Find common points or facets of this to the original mesh. For points or facets that don't match defaultColor will be used instead, otherwise the color of the original material is used.

References apply().

Referenced by apply().

◆ apply() [3/4]

void MeshTexture::apply ( const Mesh::MeshObject mesh,
float  max_dist,
MeshCore::Material material 
)

Find common points or facets of this to the original mesh and use the color of the original material. If for a point of mesh no matching point of the original mesh can be found the texture mapping will fail.

References apply().

◆ apply() [4/4]

void MeshTexture::apply ( const Mesh::MeshObject mesh,
MeshCore::Material material 
)

Find common points or facets of this to the original mesh and use the color of the original material. If for a point of mesh no matching point of the original mesh can be found the texture mapping will fail.

References apply().


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