Coupure prévue mercredi 4 Août pour maintenance du serveur. Nous faisons au mieux pour que celle-ci soit la plus brève possible.

Commit 2a524b67 authored by Pierre Kraemer's avatar Pierre Kraemer
Browse files

debug Dart/CellMarker + suppr '_ORBIT' et '_CELL'

parent 218a41b3
...@@ -43,7 +43,7 @@ int main() ...@@ -43,7 +43,7 @@ int main()
std::cout << "Check Status : PARTIAL" << std::endl; std::cout << "Check Status : PARTIAL" << std::endl;
PFP::MAP map; PFP::MAP map;
AttributeHandler<PFP::VEC3> position = map.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "position"); AttributeHandler<PFP::VEC3> position = map.addAttribute<PFP::VEC3>(VERTEX, "position");
map.newFace(3); map.newFace(3);
PFP::VEC3 ta(0,0,0); PFP::VEC3 ta(0,0,0);
......
...@@ -332,7 +332,7 @@ int main(int argc, char **argv) ...@@ -332,7 +332,7 @@ int main(int argc, char **argv)
if (argc == 1) if (argc == 1)
{ {
position = myMap.addAttribute<Geom::Vec3f>(VERTEX_ORBIT, "position"); position = myMap.addAttribute<Geom::Vec3f>(VERTEX, "position");
CGoGNout <<"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"<<CGoGNendl; CGoGNout <<"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"<<CGoGNendl;
// typedef uint8 DATATYPE; // typedef uint8 DATATYPE;
...@@ -422,10 +422,10 @@ int main(int argc, char **argv) ...@@ -422,10 +422,10 @@ int main(int argc, char **argv)
// //
// GLint t1 = glutGet(GLUT_ELAPSED_TIME); // GLint t1 = glutGet(GLUT_ELAPSED_TIME);
// //
// myMap.getAttributeContainer(VERTEX_ORBIT).toggleProcess(position); // myMap.getAttributeContainer(VERTEX).toggleProcess(position);
//// myMap.getAttributeContainer(VERTEX_ORBIT).toggleProcess(idPipo); //// myMap.getAttributeContainer(VERTEX).toggleProcess(idPipo);
// //
// PFP::MAP::EVertex::setContainer(myMap.getAttributeContainer(VERTEX_ORBIT)); // PFP::MAP::EVertex::setContainer(myMap.getAttributeContainer(VERTEX));
// PFP::MAP::EVertex::setMap(myMap); // PFP::MAP::EVertex::setMap(myMap);
// PFP::MAP::EVertex ec(0); // PFP::MAP::EVertex ec(0);
// //
...@@ -433,7 +433,7 @@ int main(int argc, char **argv) ...@@ -433,7 +433,7 @@ int main(int argc, char **argv)
// GLfloat seconds = (t2 - t1) / 1000.0f; // GLfloat seconds = (t2 - t1) / 1000.0f;
// CGoGNout << "triangulation: "<< seconds << "sec" << CGoGNendl; // CGoGNout << "triangulation: "<< seconds << "sec" << CGoGNendl;
// //
// Marker m = myMap.getNewMarker(VERTEX_ORBIT); // Marker m = myMap.getNewMarker(VERTEX);
// myMap.markEmbVertex(myMap.begin(),m); // myMap.markEmbVertex(myMap.begin(),m);
// //
// Dart xd = myMap.alpha1(myMap.begin()); // Dart xd = myMap.alpha1(myMap.begin());
...@@ -447,8 +447,8 @@ int main(int argc, char **argv) ...@@ -447,8 +447,8 @@ int main(int argc, char **argv)
// CGoGNout << "Marke aussi"<< CGoGNendl; // CGoGNout << "Marke aussi"<< CGoGNendl;
// } // }
// //
// myMap.clearEmbMarkers(m,VERTEX_ORBIT); // myMap.clearEmbMarkers(m,VERTEX);
// myMap.releaseEmbMarker(m,VERTEX_ORBIT); // myMap.releaseEmbMarker(m,VERTEX);
// //
// } // }
else else
...@@ -462,7 +462,7 @@ int main(int argc, char **argv) ...@@ -462,7 +462,7 @@ int main(int argc, char **argv)
CGoGNerr << "could not import " << std::string(argv[1]) << CGoGNendl ; CGoGNerr << "could not import " << std::string(argv[1]) << CGoGNendl ;
exit(1); exit(1);
} }
position = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, attrNames[0]) ; position = myMap.getAttribute<PFP::VEC3>(VERTEX, attrNames[0]) ;
GLint t1 = glutGet(GLUT_ELAPSED_TIME); GLint t1 = glutGet(GLUT_ELAPSED_TIME);
...@@ -474,10 +474,10 @@ int main(int argc, char **argv) ...@@ -474,10 +474,10 @@ int main(int argc, char **argv)
// Algo::Modelisation::CatmullClark<PFP, PFP::TVEC3, PFP::VEC3>(myMap,position); // Algo::Modelisation::CatmullClark<PFP, PFP::TVEC3, PFP::VEC3>(myMap,position);
// PFP::MAP::EVertex::setContainer(myMap.getAttributeContainer(VERTEX_ORBIT)); // PFP::MAP::EVertex::setContainer(myMap.getAttributeContainer(VERTEX));
// PFP::MAP::EVertex::setMap(myMap); // PFP::MAP::EVertex::setMap(myMap);
// PFP::MAP::EVertex ec(0); // PFP::MAP::EVertex ec(0);
// myMap.getAttributeContainer(VERTEX_ORBIT).toggleProcess(position); // myMap.getAttributeContainer(VERTEX).toggleProcess(position);
// //
// Algo::Modelisation::LoopSubdivision<PFP, PFP::EVERTEX, PFP::EVERTEX>(myMap,ec); // Algo::Modelisation::LoopSubdivision<PFP, PFP::EVERTEX, PFP::EVERTEX>(myMap,ec);
// Algo::Modelisation::LoopSubdivision<PFP, PFP::EVERTEX, PFP::EVERTEX>(myMap,ec); // Algo::Modelisation::LoopSubdivision<PFP, PFP::EVERTEX, PFP::EVERTEX>(myMap,ec);
...@@ -490,15 +490,15 @@ int main(int argc, char **argv) ...@@ -490,15 +490,15 @@ int main(int argc, char **argv)
CGoGNout << "subdiv: "<< seconds << "sec" << CGoGNendl; CGoGNout << "subdiv: "<< seconds << "sec" << CGoGNendl;
// myMap.getAttributeContainer(VERTEX_ORBIT).toggleProcess(position); // myMap.getAttributeContainer(VERTEX).toggleProcess(position);
// PFP::MAP::EVertex::setContainer(myMap.getAttributeContainer(VERTEX_ORBIT)); // PFP::MAP::EVertex::setContainer(myMap.getAttributeContainer(VERTEX));
// PFP::MAP::EVertex::setMap(myMap); // PFP::MAP::EVertex::setMap(myMap);
// PFP::MAP::EVertex ec(0); // PFP::MAP::EVertex ec(0);
// Algo::Modelisation::triangleSubdivide<PFP, PFP::EVERTEX, PFP::EVERTEX>(myMap,ec); // Algo::Modelisation::triangleSubdivide<PFP, PFP::EVERTEX, PFP::EVERTEX>(myMap,ec);
// Algo::Modelisation::triangleSubdivide<PFP, PFP::EVERTEX, PFP::EVERTEX>(myMap,ec); // Algo::Modelisation::triangleSubdivide<PFP, PFP::EVERTEX, PFP::EVERTEX>(myMap,ec);
// Algo::Modelisation::triangleSubdivide<PFP, PFP::EVERTEX, PFP::EVERTEX>(myMap,ec); // Algo::Modelisation::triangleSubdivide<PFP, PFP::EVERTEX, PFP::EVERTEX>(myMap,ec);
CGoGNout << "Nombre de sommets plonges "<< myMap.getNbCells(VERTEX_ORBIT)<<CGoGNendl; CGoGNout << "Nombre de sommets plonges "<< myMap.getNbCells(VERTEX)<<CGoGNendl;
CGoGNout << "Nombre de sommets topo: "<< myMap.getNbOrbits(0)<<CGoGNendl; CGoGNout << "Nombre de sommets topo: "<< myMap.getNbOrbits(0)<<CGoGNendl;
CGoGNout << "Nombre de faces topo: "<< myMap.getNbOrbits(2)<<CGoGNendl; CGoGNout << "Nombre de faces topo: "<< myMap.getNbOrbits(2)<<CGoGNendl;
...@@ -515,7 +515,7 @@ int main(int argc, char **argv) ...@@ -515,7 +515,7 @@ int main(int argc, char **argv)
bool inter = Algo::Geometry::areTrianglesInIntersection<PFP>(myMap,0,10,position) ; bool inter = Algo::Geometry::areTrianglesInIntersection<PFP>(myMap,0,10,position) ;
CGoGNout << "intersection = " << inter << CGoGNendl ; CGoGNout << "intersection = " << inter << CGoGNendl ;
normal = myMap.addAttribute<Geom::Vec3f>(VERTEX_ORBIT, "normals"); normal = myMap.addAttribute<Geom::Vec3f>(VERTEX, "normals");
// PFP::NORMAL normal(normal,myMap); // PFP::NORMAL normal(normal,myMap);
......
...@@ -235,9 +235,9 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y) ...@@ -235,9 +235,9 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y)
/** affichage **/ /** affichage **/
case 'd' : case 'd' :
{ {
int nbVertices = myMap.getNbOrbits(VERTEX_ORBIT) ; int nbVertices = myMap.getNbOrbits(VERTEX) ;
CGoGNout << "nb darts = " << myMap.getNbOrbits(DART_ORBIT) << CGoGNendl; CGoGNout << "nb darts = " << myMap.getNbOrbits(DART) << CGoGNendl;
GLint t1 = glutGet(GLUT_ELAPSED_TIME); GLint t1 = glutGet(GLUT_ELAPSED_TIME);
Algo::DecimationVolumique::decimate<PFP>(myMap, Algo::DecimationVolumique::S_Random, Algo::DecimationVolumique::A_Centroid, position, nbVertices * 0.75); Algo::DecimationVolumique::decimate<PFP>(myMap, Algo::DecimationVolumique::S_Random, Algo::DecimationVolumique::A_Centroid, position, nbVertices * 0.75);
...@@ -370,7 +370,7 @@ int main(int argc, char **argv) ...@@ -370,7 +370,7 @@ int main(int argc, char **argv)
} }
Algo::Import::importOFFWithELERegions<PFP>(myMap,argv[2],argv[3],attrNames); Algo::Import::importOFFWithELERegions<PFP>(myMap,argv[2],argv[3],attrNames);
position = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, attrNames[0]) ; position = myMap.getAttribute<PFP::VEC3>(VERTEX, attrNames[0]) ;
} }
else if(std::string(argv[1]) == "-tet") else if(std::string(argv[1]) == "-tet")
{ {
...@@ -380,7 +380,7 @@ int main(int argc, char **argv) ...@@ -380,7 +380,7 @@ int main(int argc, char **argv)
} }
Algo::Import::importTet<PFP>(myMap, argv[2], attrNames); Algo::Import::importTet<PFP>(myMap, argv[2], attrNames);
position = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, attrNames[0]) ; position = myMap.getAttribute<PFP::VEC3>(VERTEX, attrNames[0]) ;
} }
else if(std::string(argv[1]) == "-ts") else if(std::string(argv[1]) == "-ts")
{ {
...@@ -390,18 +390,18 @@ int main(int argc, char **argv) ...@@ -390,18 +390,18 @@ int main(int argc, char **argv)
} }
Algo::Import::importTs<PFP>(myMap,argv[2],attrNames); Algo::Import::importTs<PFP>(myMap,argv[2],attrNames);
position = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, attrNames[0]) ; position = myMap.getAttribute<PFP::VEC3>(VERTEX, attrNames[0]) ;
//scalar = myMap.getAttribute<PFP::REAL>(VERTEX_ORBIT, "scalar"); //scalar = myMap.getAttribute<PFP::REAL>(VERTEX, "scalar");
} }
else else
{ {
maillageTest(); maillageTest();
} }
//CGoGNout << "Nb Tetrahedron = " << myMap.getNbOrbits(VOLUME_ORBIT) << CGoGNendl; //CGoGNout << "Nb Tetrahedron = " << myMap.getNbOrbits(VOLUME) << CGoGNendl;
// " / Nb Edges = " << myMap.getNbOrbits(EDGE_ORBIT) << // " / Nb Edges = " << myMap.getNbOrbits(EDGE) <<
// " / Nb Vertices = " << myMap.getNbOrbits(VERTEX_ORBIT) << CGoGNendl; // " / Nb Vertices = " << myMap.getNbOrbits(VERTEX) << CGoGNendl;
// un peu d'interface // un peu d'interface
MyGlutWin* mgw = new MyGlutWin(&argc,argv,1200,800); MyGlutWin* mgw = new MyGlutWin(&argc,argv,1200,800);
......
...@@ -109,7 +109,7 @@ int main(int argc, char **argv) ...@@ -109,7 +109,7 @@ int main(int argc, char **argv)
QApplication app(argc, argv); QApplication app(argc, argv);
MyQT sqt; MyQT sqt;
PFP::TVEC3 position = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "position") ; PFP::TVEC3 position = myMap.addAttribute<PFP::VEC3>(VERTEX, "position") ;
// define the face extruded (here a cross) // define the face extruded (here a cross)
std::vector<PFP::VEC3> objV; std::vector<PFP::VEC3> objV;
......
...@@ -311,8 +311,8 @@ MyGlutWin::MyGlutWin(int* argc, char **argv, int winX, int winY) : ...@@ -311,8 +311,8 @@ MyGlutWin::MyGlutWin(int* argc, char **argv, int winX, int winY) :
void MyGlutWin::init() void MyGlutWin::init()
{ {
normal = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "normal") ; normal = myMap.addAttribute<PFP::VEC3>(VERTEX, "normal") ;
laplacian = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "laplacian") ; laplacian = myMap.addAttribute<PFP::VEC3>(VERTEX, "laplacian") ;
vbo_render = new Algo::Render::GL2::MapRender_VBO() ; vbo_render = new Algo::Render::GL2::MapRender_VBO() ;
updateVBOdata(Algo::Render::GL2::POSITIONS | Algo::Render::GL2::NORMALS) ; updateVBOdata(Algo::Render::GL2::POSITIONS | Algo::Render::GL2::NORMALS) ;
...@@ -489,12 +489,12 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y) ...@@ -489,12 +489,12 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y)
GLfloat seconds = (t2 - t1) / 1000.0f ; GLfloat seconds = (t2 - t1) / 1000.0f ;
CGoGNout << "sqrt3: "<< seconds << "sec" << CGoGNendl ; CGoGNout << "sqrt3: "<< seconds << "sec" << CGoGNendl ;
normal = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, "normal") ; normal = myMap.getAttribute<PFP::VEC3>(VERTEX, "normal") ;
if(!normal.isValid()) if(!normal.isValid())
normal = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "normal") ; normal = myMap.addAttribute<PFP::VEC3>(VERTEX, "normal") ;
laplacian = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, "laplacian") ; laplacian = myMap.getAttribute<PFP::VEC3>(VERTEX, "laplacian") ;
if(!laplacian.isValid()) if(!laplacian.isValid())
laplacian = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "laplacian") ; laplacian = myMap.addAttribute<PFP::VEC3>(VERTEX, "laplacian") ;
t1 = glutGet(GLUT_ELAPSED_TIME) ; t1 = glutGet(GLUT_ELAPSED_TIME) ;
...@@ -560,7 +560,7 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y) ...@@ -560,7 +560,7 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y)
case 's': case 's':
{ {
unsigned int nbVertices = myMap.getNbOrbits(VERTEX_ORBIT) ; unsigned int nbVertices = myMap.getNbOrbits(VERTEX) ;
GLint t1 = glutGet(GLUT_ELAPSED_TIME) ; GLint t1 = glutGet(GLUT_ELAPSED_TIME) ;
...@@ -586,9 +586,9 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y) ...@@ -586,9 +586,9 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y)
case 'd': case 'd':
{ {
AttributeHandler<PFP::VEC3> positionF = myMap.getAttribute<PFP::VEC3>(FACE_ORBIT, "position") ; AttributeHandler<PFP::VEC3> positionF = myMap.getAttribute<PFP::VEC3>(FACE, "position") ;
if(!positionF.isValid()) if(!positionF.isValid())
positionF = myMap.addAttribute<PFP::VEC3>(FACE_ORBIT, "position") ; positionF = myMap.addAttribute<PFP::VEC3>(FACE, "position") ;
Algo::Geometry::computeCentroidFaces<PFP>(myMap, position, positionF) ; Algo::Geometry::computeCentroidFaces<PFP>(myMap, position, positionF) ;
GLint t1 = glutGet(GLUT_ELAPSED_TIME) ; GLint t1 = glutGet(GLUT_ELAPSED_TIME) ;
...@@ -601,12 +601,12 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y) ...@@ -601,12 +601,12 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y)
position = positionF ; position = positionF ;
normal = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, "normal") ; normal = myMap.getAttribute<PFP::VEC3>(VERTEX, "normal") ;
if(!normal.isValid()) if(!normal.isValid())
normal = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "normal") ; normal = myMap.addAttribute<PFP::VEC3>(VERTEX, "normal") ;
laplacian = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, "laplacian") ; laplacian = myMap.getAttribute<PFP::VEC3>(VERTEX, "laplacian") ;
if(!laplacian.isValid()) if(!laplacian.isValid())
laplacian = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "laplacian") ; laplacian = myMap.addAttribute<PFP::VEC3>(VERTEX, "laplacian") ;
t1 = glutGet(GLUT_ELAPSED_TIME) ; t1 = glutGet(GLUT_ELAPSED_TIME) ;
...@@ -649,12 +649,12 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y) ...@@ -649,12 +649,12 @@ void MyGlutWin::myKeyboard(unsigned char keycode, int x, int y)
case '9': case '9':
{ {
CellMarker markVisit(myMap, VERTEX_CELL) ; CellMarker markVisit(myMap, VERTEX) ;
CellMarker markNoDelete(myMap, VERTEX_CELL) ; CellMarker markNoDelete(myMap, VERTEX) ;
std::vector<Dart> visited ; std::vector<Dart> visited ;
visited.reserve(myMap.getNbCells(VERTEX_CELL)) ; visited.reserve(myMap.getNbCells(VERTEX)) ;
visited.push_back(myMap.begin()) ; visited.push_back(myMap.begin()) ;
markVisit.mark(myMap.begin()) ; markVisit.mark(myMap.begin()) ;
...@@ -811,7 +811,7 @@ int main(int argc, char** argv) ...@@ -811,7 +811,7 @@ int main(int argc, char** argv)
return 1 ; return 1 ;
} }
mgw->position = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, attrNames[0]) ; mgw->position = myMap.getAttribute<PFP::VEC3>(VERTEX, attrNames[0]) ;
GLint t2 = glutGet(GLUT_ELAPSED_TIME) ; GLint t2 = glutGet(GLUT_ELAPSED_TIME) ;
GLfloat seconds = (t2 - t1) / 1000.0f ; GLfloat seconds = (t2 - t1) / 1000.0f ;
CGoGNout << "import: " << seconds << " sec" << CGoGNendl ; CGoGNout << "import: " << seconds << " sec" << CGoGNendl ;
...@@ -820,9 +820,9 @@ int main(int argc, char** argv) ...@@ -820,9 +820,9 @@ int main(int argc, char** argv)
// myMap.closeMap(m) ; // myMap.closeMap(m) ;
} }
CGoGNout << myMap.getNbOrbits(VERTEX_ORBIT) << CGoGNendl ; CGoGNout << myMap.getNbOrbits(VERTEX) << CGoGNendl ;
CGoGNout << myMap.getNbOrbits(EDGE_ORBIT) << CGoGNendl ; CGoGNout << myMap.getNbOrbits(EDGE) << CGoGNendl ;
CGoGNout << myMap.getNbOrbits(FACE_ORBIT) << CGoGNendl ; CGoGNout << myMap.getNbOrbits(FACE) << CGoGNendl ;
// compute width and position of object for centering // compute width and position of object for centering
Geom::BoundingBox<PFP::VEC3> bb = Algo::Geometry::computeBoundingBox<PFP>(myMap, mgw->position) ; Geom::BoundingBox<PFP::VEC3> bb = Algo::Geometry::computeBoundingBox<PFP>(myMap, mgw->position) ;
......
...@@ -99,7 +99,7 @@ int main(int argc, char **argv) ...@@ -99,7 +99,7 @@ int main(int argc, char **argv)
QApplication app(argc, argv); QApplication app(argc, argv);
MyQT sqt; MyQT sqt;
PFP::TVEC3 position = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "position") ; PFP::TVEC3 position = myMap.addAttribute<PFP::VEC3>(VERTEX, "position") ;
// create a cylinder // create a cylinder
Algo::Modelisation::Polyhedron<PFP> prim1(myMap, position); Algo::Modelisation::Polyhedron<PFP> prim1(myMap, position);
......
...@@ -211,8 +211,8 @@ int main(int argc, char **argv) ...@@ -211,8 +211,8 @@ int main(int argc, char **argv)
myGlutWin mgw(&argc,argv,800,800); myGlutWin mgw(&argc,argv,800,800);
mgw.init(); mgw.init();
mgw.position = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "position") ; mgw.position = myMap.addAttribute<PFP::VEC3>(VERTEX, "position") ;
mgw.normal = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "normal") ; mgw.normal = myMap.addAttribute<PFP::VEC3>(VERTEX, "normal") ;
glewInit(); glewInit();
if (! Utils::GLSLShader::areShadersSupported()) if (! Utils::GLSLShader::areShadersSupported())
...@@ -229,7 +229,7 @@ int main(int argc, char **argv) ...@@ -229,7 +229,7 @@ int main(int argc, char **argv)
prim1.cylinder_topo(16,15, true, true); prim1.cylinder_topo(16,15, true, true);
prim1.embedCylinder(30.0f,20.0f,50.0f); prim1.embedCylinder(30.0f,20.0f,50.0f);
CellMarker mark1(myMap,VERTEX_CELL); CellMarker mark1(myMap,VERTEX);
prim1.mark(mark1); prim1.mark(mark1);
// create a sphere // create a sphere
...@@ -237,7 +237,7 @@ int main(int argc, char **argv) ...@@ -237,7 +237,7 @@ int main(int argc, char **argv)
prim2.cylinder_topo(16,16, true, true); prim2.cylinder_topo(16,16, true, true);
prim2.embedSphere(40.0f); prim2.embedSphere(40.0f);
CellMarker mark2(myMap,VERTEX_CELL); CellMarker mark2(myMap,VERTEX);
prim2.mark(mark2); prim2.mark(mark2);
// create a sphere // create a sphere
...@@ -245,7 +245,7 @@ int main(int argc, char **argv) ...@@ -245,7 +245,7 @@ int main(int argc, char **argv)
prim3.tore_topo(12,48); prim3.tore_topo(12,48);
prim3.embedTore(50.0f,10.0f); prim3.embedTore(50.0f,10.0f);
CellMarker mark3(myMap,VERTEX_CELL); CellMarker mark3(myMap,VERTEX);
prim3.mark(mark3); prim3.mark(mark3);
......
...@@ -390,8 +390,8 @@ int main(int argc, char **argv) ...@@ -390,8 +390,8 @@ int main(int argc, char **argv)
{ {
myGlutWin mgw(&argc,argv,800,800); myGlutWin mgw(&argc,argv,800,800);
mgw.idAttr_Position = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "position", "Geom::Vec3f") ; mgw.idAttr_Position = myMap.addAttribute<PFP::VEC3>(VERTEX, "position", "Geom::Vec3f") ;
mgw.idAttr_Normal = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "normal", "Geom::Vec3f") ; mgw.idAttr_Normal = myMap.addAttribute<PFP::VEC3>(VERTEX, "normal", "Geom::Vec3f") ;
AttributeHandler<PFP::VEC3> tablePositions(myMap, mgw.idAttr_Position) ; AttributeHandler<PFP::VEC3> tablePositions(myMap, mgw.idAttr_Position) ;
PFP::VEC3 gMax; PFP::VEC3 gMax;
......
...@@ -384,7 +384,7 @@ int main(int argc, char **argv) ...@@ -384,7 +384,7 @@ int main(int argc, char **argv)
if(argc < 2) if(argc < 2)
{ {
mgw.position = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "position") ; mgw.position = myMap.addAttribute<PFP::VEC3>(VERTEX, "position") ;
Dart d = myMap.newFace(4); Dart d = myMap.newFace(4);
Dart e = myMap.newFace(3); Dart e = myMap.newFace(3);
...@@ -415,10 +415,10 @@ int main(int argc, char **argv) ...@@ -415,10 +415,10 @@ int main(int argc, char **argv)
CGoGNerr <<"Import fail"<< CGoGNendl; CGoGNerr <<"Import fail"<< CGoGNendl;
exit(1); exit(1);
} }
mgw.position = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, attrNames[0]) ; mgw.position = myMap.getAttribute<PFP::VEC3>(VERTEX, attrNames[0]) ;
} }
mgw.normal = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "normal") ; mgw.normal = myMap.addAttribute<PFP::VEC3>(VERTEX, "normal") ;
// pour le rendu // pour le rendu
Geom::BoundingBox<PFP::VEC3> bb = Algo::Geometry::computeBoundingBox<PFP>(myMap, mgw.position) ; Geom::BoundingBox<PFP::VEC3> bb = Algo::Geometry::computeBoundingBox<PFP>(myMap, mgw.position) ;
......
...@@ -297,7 +297,7 @@ void maillageTest() ...@@ -297,7 +297,7 @@ void maillageTest()
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
//Initilisation du plongement geometrique //Initilisation du plongement geometrique
position = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "position"); position = myMap.addAttribute<PFP::VEC3>(VERTEX, "position");
/* /*
* Chargement de maillages * Chargement de maillages
......
...@@ -131,9 +131,9 @@ int main(int argc, char **argv) ...@@ -131,9 +131,9 @@ int main(int argc, char **argv)
return 1 ; return 1 ;
} }
// cree un handler d'attribut pour la position des points (créé lors de l'import) // cree un handler d'attribut pour la position des points (créé lors de l'import)
AttributeHandler<PFP::VEC3> position = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, attrNames[0]) ; AttributeHandler<PFP::VEC3> position = myMap.getAttribute<PFP::VEC3>(VERTEX, attrNames[0]) ;
// cree un handler pour les normales aux sommets // cree un handler pour les normales aux sommets
AttributeHandler<PFP::VEC3> normal = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "normal"); AttributeHandler<PFP::VEC3> normal = myMap.addAttribute<PFP::VEC3>(VERTEX, "normal");
// // parcours de tous les brins de la carte: // // parcours de tous les brins de la carte:
...@@ -148,7 +148,7 @@ int main(int argc, char **argv) ...@@ -148,7 +148,7 @@ int main(int argc, char **argv)
{ {
fonction_exemple<PFP>(myMap, position, d); fonction_exemple<PFP>(myMap, position, d);
// marque tous les brins de la face de d // marque tous les brins de la face de d
mf.markOrbit(FACE_ORBIT, d); mf.markOrbit(FACE, d);
} }
} }
......
...@@ -127,7 +127,7 @@ void TriangulateFromDart(typename PFP::MAP& map, const AttributeHandler<typename ...@@ -127,7 +127,7 @@ void TriangulateFromDart(typename PFP::MAP& map, const AttributeHandler<typename
Dart e = d; Dart e = d;
do do
{ {
indices.push_back( map.getEmbedding(e,VERTEX_ORBIT) ); // recupere l'indice du point dans le handler indices.push_back( map.getEmbedding(e,VERTEX) ); // recupere l'indice du point dans le handler
e = map.phi1(e); // brin suivant dans la face e = map.phi1(e); // brin suivant dans la face
} while (e != d); // tq par revenu au debut } while (e != d); // tq par revenu au debut
...@@ -150,7 +150,7 @@ int main(int argc, char **argv) ...@@ -150,7 +150,7 @@ int main(int argc, char **argv)
// creation of a new attribute on vertices of type 3D vector // creation of a new attribute on vertices of type 3D vector
// a handler to this attribute is returned // a handler to this attribute is returned
AttributeHandler<PFP::VEC3> position = myMap.addAttribute<PFP::VEC3>(VERTEX_ORBIT, "position"); AttributeHandler<PFP::VEC3> position = myMap.addAttribute<PFP::VEC3>(VERTEX, "position");
// creation face 1 (convexe) // creation face 1 (convexe)
Dart d1 = myMap.newFace(5); Dart d1 = myMap.newFace(5);
......
...@@ -179,7 +179,7 @@ void Viewer::importMesh(std::string& filename) ...@@ -179,7 +179,7 @@ void Viewer::importMesh(std::string& filename)
CGoGNerr << "could not import " << filename << CGoGNendl ; CGoGNerr << "could not import " << filename << CGoGNendl ;
return; return;
} }
position = myMap.getAttribute<PFP::VEC3>(VERTEX_ORBIT, attrNames[0]) ; position = myMap.getAttribute<PFP::VEC3>(VERTEX, attrNames[0]) ;
m_render->initPrimitives<PFP>(myMap, allDarts, Algo::Render::GL2::POINTS) ; m_render->initPrimitives<PFP>(myMap, allDarts, Algo::Render::GL2::POINTS) ;
m_render->initPrimitives<PFP>(myMap, allDarts, Algo::Render::GL2::LINES) ; m_render->initPrimitives<PFP>(myMap, allDarts, Algo::Render::GL2::LINES) ;
...@@ -195,7 +195,7 @@ void Viewer::importMesh(std::string& filename) ...@@ -195,7 +195,7 @@ void Viewer::importMesh(std::string& file