VCG Library
Static Public Member Functions | List of all members
vcg::tri::UpdateTexture< ComputeMeshType > Class Template Reference

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 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...
 

Detailed Description

template<class ComputeMeshType>
class vcg::tri::UpdateTexture< ComputeMeshType >

This class is used to update/generate texcoord position according to various critera. .

Definition at line 39 of file texture.h.

Member Function Documentation

template<class ComputeMeshType >
static int vcg::tri::UpdateTexture< ComputeMeshType >::WedgeTexMergeClose ( ComputeMeshType &  m,
ScalarType  mergeThr = ScalarType(1.0/65536.0) 
)
inlinestatic

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...

Definition at line 148 of file texture.h.

template<class ComputeMeshType >
static void vcg::tri::UpdateTexture< ComputeMeshType >::WedgeTexRemoveNull ( ComputeMeshType &  m,
const std::string &  texturename 
)
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.

Definition at line 119 of file texture.h.


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