Commit 9cb5f9c5 by Pierre Kraemer

### cell typing in map2 functions

parent cc4445d8
 ... ... @@ -59,10 +59,14 @@ int main() // easy way to find the central vertex of the grid Vertex v; // findCell(VERTEX,v,MAP,myMap, position[v] == VEC3(0,0,0) ); find_cell(myMap,v, [&](Vertex v) foreach_cell_until(myMap, [&] (Vertex it) { return position[v] == VEC3(0,0,0); if (position[it] == VEC3(0,0,0)) { v = it; return true; } return false; }); // must test of find ok (if not v.dart is NIL) ... ... @@ -73,14 +77,14 @@ int main() // WITH TRAVERSORS: // find incident faces to vertex Traversor2VF trvf(myMap,v.dart); Traversor2VF trvf(myMap, v.dart); for (Dart e = trvf.begin(); e != trvf.end(); e = trvf.next()) { std::cout << "Face of dart "< trvvaf(myMap,v.dart); Traversor2VVaF trvvaf(myMap, v.dart); for (Dart e = trvvaf.begin(); e != trvvaf.end(); e = trvvaf.next()) { std::cout << "vertex of dart "<(myMap,v,[&](Face f) // find faces incident to vertex v foreach_incident2(myMap, v, [&](Face f) { std::cout << "Face of dart "<(myMap,v,[&](Vertex x) // find vertices adjacent to vertex v thru a face foreach_adjacent2(myMap, v, [&](Vertex x) { std::cout << "vertex of dart "<
 ... ... @@ -28,9 +28,9 @@ public: inline const QString& getName() { return m_name; } virtual inline unsigned int getOrbit() const = 0; virtual unsigned int getOrbit() const = 0; virtual inline unsigned int getNbSelectedCells() const = 0; virtual unsigned int getNbSelectedCells() const = 0; virtual void rebuild() = 0; ... ... @@ -45,7 +45,7 @@ public: inline void setMutuallyExclusive(bool b) { m_isMutuallyExclusive = b; } inline bool isMutuallyExclusive() const { return m_isMutuallyExclusive; } virtual inline void setMutuallyExclusiveSet(const QList& mex) = 0; virtual void setMutuallyExclusiveSet(const QList& mex) = 0; signals: void selectedCellsChanged(); ... ...
 ... ... @@ -151,10 +151,10 @@ protected: * @param tableIndices the indices table */ template void addTri(typename PFP::MAP& map, Dart d, std::vector& tableIndices) ; void addTri(typename PFP::MAP& map, Face f, std::vector& tableIndices) ; template inline void addEarTri(typename PFP::MAP& map, Dart d, std::vector& tableIndices, const VertexAttribute* position); inline void addEarTri(typename PFP::MAP& map, Face f, std::vector& tableIndices, const VertexAttribute* position); template float computeEarAngle(const typename PFP::VEC3& P1, const typename PFP::VEC3& P2, const typename PFP::VEC3& P3, const typename PFP::VEC3& normalPoly); ... ...