Commit e194db48 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'DefaultMeshTypes' into 'master'

use default mesh types of OpenMesh to define TriMesh and PolyMesh

See merge request !4
parents 1631946d b6875165
......@@ -61,30 +61,16 @@
//== INCLUDES =================================================================
#include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
#include <ACG/Scenegraph/StatusNodesT.hh>
#include <OpenMesh/Core/Mesh/DefaultPolyMesh.hh>
//== TYPEDEFS =================================================================
/** Default traits for the PolyMesh
*/
struct PolyTraits : public OpenMesh::DefaultTraits
{
/// Use double precision points
typedef OpenMesh::Vec3d Point;
/// Use double precision Normals
typedef OpenMesh::Vec3d Normal;
/// Use RGBA Color
typedef OpenMesh::Vec4f Color;
};
typedef OpenMesh::DefaultTraitsDouble PolyTraits;
/// Simple Name for Mesh
typedef OpenMesh::PolyMesh_ArrayKernelT<PolyTraits> PolyMesh;
//== TYPEDEFS FOR SCENEGRAPH ===============================================
typedef OpenMesh::PolyMesh PolyMesh;
//=============================================================================
#endif // POLYMESH_TYPES_HH defined
......
......@@ -61,31 +61,17 @@
//== INCLUDES =================================================================
#include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
#include <OpenMesh/Core/Mesh/DefaultTriMesh.hh>
//== TYPEDEFS =================================================================
/** Traits for the Meshes ( Use request ... calls to add other standard properties or add them in the via add_property.. )\n
* Dont add Properties here as they may prevent plugins from loading!!!!
*/
struct TriTraits : public OpenMesh::DefaultTraits
{
/// Use double precision points
typedef OpenMesh::Vec3d Point;
/// Use double precision Normals
typedef OpenMesh::Vec3d Normal;
/// Use RGBA Color
typedef OpenMesh::Vec4f Color;
};
typedef OpenMesh::DefaultTraitsDouble TriTraits;
/// Simple Name for Mesh
typedef OpenMesh::TriMesh_ArrayKernelT<TriTraits> TriMesh;
//== TYPEDEFS FOR SCENEGRAPH ===============================================
typedef OpenMesh::TriMesh TriMesh;
//=============================================================================
#endif // TRIANGLEMESH_TYPES_HH defined
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment