Commit aaf269c0 authored by Thery Sylvain's avatar Thery Sylvain
Browse files

add and use DIMENSION static const def in maps

parent a77997e2
......@@ -43,6 +43,10 @@ protected:
public:
typedef GMap0 ParentMap;
static const unsigned int DIMENSION = 1 ;
GMap1();
virtual std::string mapTypeName() const;
......
......@@ -50,6 +50,8 @@ public:
static const unsigned int VERTEX_OF_PARENT = VERTEX+5;
static const unsigned int EDGE_OF_PARENT = EDGE+5;
static const unsigned int DIMENSION = 2 ;
GMap2();
virtual std::string mapTypeName() const;
......
......@@ -56,6 +56,9 @@ public:
static const unsigned int VERTEX_OF_PARENT2 = VERTEX+5;
static const unsigned int EDGE_OF_PARENT2 = EDGE+5;
static const unsigned int DIMENSION = 3 ;
// enum { DIMENSION = 3 } ;
GMap3();
virtual std::string mapTypeName() const;
......
......@@ -39,6 +39,8 @@ class EmbeddedMap2 : public Map2
public:
typedef Map2 TOPO_MAP;
static const unsigned int DIMENSION = 2 ;
/*
*
*/
......
......@@ -37,6 +37,10 @@ class EmbeddedMap3 : public Map3
public:
typedef Map3 TOPO_MAP;
static const unsigned int DIMENSION = 3 ;
//!
/*!
*
......
......@@ -51,6 +51,8 @@ protected:
public:
Map1();
static const unsigned int DIMENSION = 1 ;
virtual std::string mapTypeName() const;
virtual unsigned int dimension() const;
......
......@@ -58,6 +58,7 @@ public:
inline static unsigned int ORBIT_IN_PARENT(unsigned int o) { return o+5; }
static const unsigned int IN_PARENT = 5 ;
static const unsigned int DIMENSION = 2 ;
static const unsigned int VERTEX_OF_PARENT = VERTEX+5;
static const unsigned int EDGE_OF_PARENT = EDGE+5;
......
......@@ -70,6 +70,10 @@ public:
static const unsigned int VERTEX_OF_PARENT2 = VERTEX+5;
static const unsigned int EDGE_OF_PARENT2 = EDGE+5;
static const unsigned int DIMENSION = 3 ;
Map3();
virtual std::string mapTypeName() const;
......
......@@ -31,6 +31,9 @@ namespace CGoGN
namespace Algo
{
namespace Surface
{
namespace IHM
{
......@@ -297,7 +300,6 @@ bool ImplicitHierarchicalMap::faceIsSubdividedOnce(Dart d)
}
} //namespace IHM
} // Surface
} //namespace Algo
} //namespace CGoGN
......@@ -33,6 +33,9 @@ namespace CGoGN
namespace Algo
{
namespace Volume
{
namespace IHM
{
......@@ -821,9 +824,8 @@ bool ImplicitHierarchicalMap3::coarsenNeighborhoodLevelDiffersMoreThanOne(Dart d
}
} //namespace IHM
} // Volume
} //namespace Algo
} //namespace CGoGN
......
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