44 #if defined(ENABLE_HEXAHEDRALMESH_SUPPORT) || defined(ENABLE_POLYHEDRALMESH_SUPPORT) || defined(ENABLE_TETRAHEDRALMESH_SUPPORT) 46 #define TEXTURECONTROL_1D_TEXTURE_HANDLING_OVM_C 48 #include "TextureControl.hh" 49 #include "TextureMath.hh" 51 template<
typename VolumeMeshT,
typename VolumeMeshObjectT >
55 double max = -FLT_MIN;
56 double min = FLT_MAX;;
62 max = std::max( _texProp[*v_it] , max);
63 min = std::min( _texProp[*v_it] , min);
73 double value = _texProp[*v_it];
76 value = convert.transform(value);
79 texcoord[*v_it] =
ACG::Vec2f(
float(value),
float(value) );
TexParameters parameters
Parameters of the texture.
VectorT< float, 2 > Vec2f
void copyTexture(Texture &_texture, MeshT &_mesh, OpenMesh::VPropHandleT< double > _texProp)
Copy the supplied 1D vertex property to both coordinates of the 2D vertex OM texture property...