#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) | |
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.
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.
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().
void MeshTexture::apply | ( | const Mesh::MeshObject & | mesh, |
const App::Color & | defaultColor, | ||
MeshCore::Material & | material | ||
) |
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().
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().