add default trait that uses double precision

This commit is contained in:
Max Lyon
2019-10-22 10:08:22 +02:00
parent 7a608b1e04
commit 651e8cf966

View File

@@ -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 =========================================================