$darkmode
This class is used to update/generate texcoord position according to various critera. More...
#include <vcg/complex/algorithms/update/texture.h>
Static Public Member Functions | |
static void | WedgeTexFromPlane (ComputeMeshType &m, const Point3< ScalarType > &uVec, const Point3< ScalarType > &vVec, bool aspectRatio, ScalarType sideGutter=0.0) |
static void | WedgeTexFromVertexTex (ComputeMeshType &m) |
static void | WedgeTexRemoveNull (ComputeMeshType &m, const std::string &texturename) |
static int | WedgeTexMergeClose (ComputeMeshType &m, ScalarType mergeThr=ScalarType(1.0/65536.0)) |
Merge supposedly wrong texcoords It can happens that for rounding errors texcoords on different wedges but on the same vertex have different tex coords. This function merges them according a threshold. It requires initialized VF adjacency. the default for merging is if two textures dist less than one 16th of texel on a 4k texture... | |
This class is used to update/generate texcoord position according to various critera.
|
inlinestatic |
Currently texture coords are kept for ALL the triangles of a mesh. The texture id is stored with each face. if a given face should not have tex coord it has the default -1 value for texture ID. This function will add an new fake texture, add that to the list of textures and change all the -1 id to that value.