61struct color_caster<osg::Color3ub,osg::Color3f>
63 typedef osg::Color3ub return_type;
64 typedef unsigned char ub;
66 inline static return_type cast(
const osg::Color3f& _src)
68 return return_type( (ub)std::min((_src[0]* 255.0f + 0.5f),255.0f),
69 (ub)std::min((_src[1]* 255.0f + 0.5f),255.0f),
70 (ub)std::min((_src[2]* 255.0f + 0.5f),255.0f) );
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition MeshItems.hh:64