add default trait that uses double precision
This commit is contained in:
@@ -152,6 +152,24 @@ struct DefaultTraits
|
|||||||
FaceAttributes(0);
|
FaceAttributes(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** \class DefaultTraitsDouble Traits.hh <OpenMesh/Mesh/Traits.hh>
|
||||||
|
|
||||||
|
Version of Default Traits that uses double precision for points and
|
||||||
|
normals as well as floating point vectors for colors
|
||||||
|
|
||||||
|
\see The Mesh docu section on \ref mesh_type.
|
||||||
|
\see Traits.hh for a list of macros for traits classes.
|
||||||
|
*/
|
||||||
|
struct DefaultTraitsDouble : public DefaultTraits
|
||||||
|
{
|
||||||
|
/// Use double precision points
|
||||||
|
typedef OpenMesh::Vec3d Point;
|
||||||
|
/// Use double precision Normals
|
||||||
|
typedef OpenMesh::Vec3d Normal;
|
||||||
|
/// Use RGBA Color
|
||||||
|
typedef OpenMesh::Vec4f Color;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
//== CLASS DEFINITION =========================================================
|
//== CLASS DEFINITION =========================================================
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user