Commit 4e3c81e2 authored by thomas's avatar thomas
Browse files

bande de moebiuuuuuus

parent d5d27224
...@@ -34,9 +34,22 @@ SimpleGMap2::SimpleGMap2() ...@@ -34,9 +34,22 @@ SimpleGMap2::SimpleGMap2()
Dart d = Algo::Modelisation::Polyhedron<PFP>::createOrientedTetra(myMap); Dart d = Algo::Modelisation::Polyhedron<PFP>::createOrientedTetra(myMap);
position[d] = VEC3(0,0,0); position[d] = VEC3(0,0,0);
position[myMap.phi1(d)] = VEC3(10,0,0); position[myMap.phi1(d)] = VEC3(10,0,15);
position[myMap.phi_1(d)] = VEC3(10,20,0); position[myMap.phi_1(d)] = VEC3(10,20,15);
position[myMap.phi_1(myMap.phi2(d))] = VEC3(0,0,15); position[myMap.phi_1(myMap.phi2(d))] = VEC3(0,0,30);
Algo::Modelisation::Polyhedron<PFP> poly(myMap,position);
d = poly.cylinder_topo(5,1,false,false);
poly.embedCylinder(10,10,5);
d = myMap.phi1(d);
Dart dd = myMap.beta2(d);
myMap.unsewFaces(d);
myMap.sewFaces(d,dd);
position[d][1] += 3.0f;
} }
void SimpleGMap2::initGUI() void SimpleGMap2::initGUI()
......
...@@ -163,14 +163,14 @@ public: ...@@ -163,14 +163,14 @@ public:
*/ */
virtual void removeEdgeFromVertex(Dart d); virtual void removeEdgeFromVertex(Dart d);
//! Sew two oriented faces along oriented edges (pay attention to the orientation !) //! Sew two faces along an edge (pay attention to the orientation !)
/*! \pre Darts d & e MUST be fixed point of phi2 relation /*! \pre Darts d & e MUST be fixed point of phi2 relation
* @param d a dart of the first face * @param d a dart of the first face
* @param e a dart of the second face * @param e a dart of the second face
*/ */
virtual void sewFaces(Dart d, Dart e); virtual void sewFaces(Dart d, Dart e);
//! Unsew two oriented faces along oriented edges //! Unsew two faces along an edges
/*! @param d a dart of one face /*! @param d a dart of one face
*/ */
virtual void unsewFaces(Dart d); virtual void unsewFaces(Dart d);
......
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