50 #ifdef ENABLE_OPENVOLUMEMESH_SUPPORT 52 #define TEXTURECONTROL_1D_TEXTURE_HANDLING_OVM_C 54 #include "TextureControl.hh" 55 #include "TextureMath.hh" 57 template<
typename VolumeMeshT,
typename VolumeMeshObjectT >
61 double max = -FLT_MIN;
62 double min = FLT_MAX;;
68 max = std::max( _texProp[*v_it] , max);
69 min = std::min( _texProp[*v_it] , min);
79 double value = _texProp[*v_it];
82 value = convert.transform(value);
85 texcoord[*v_it] =
ACG::Vec2f(
float(value),
float(value) );
VectorT< float, 2 > Vec2f
TexParameters parameters
Parameters of the texture.
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...
Property classes for the different entity types.