56struct color_caster<osg::Color3ub,osg::Color3f>
58 typedef osg::Color3ub return_type;
59 typedef unsigned char ub;
61 inline static return_type cast(
const osg::Color3f& _src)
63 return return_type( (ub)std::min((_src[0]* 255.0f + 0.5f),255.0f),
64 (ub)std::min((_src[1]* 255.0f + 0.5f),255.0f),
65 (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:59