// C++ : Gestion des aretes
-// Copyright (C) 2009-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
Vertex* v1 = getVertex ( prems);
Vertex* v2 = getVertex (1-prems);
- cout << " setPropag " << el_name
- << " = " << nro
- << " = (" << v1->getName() << ", " << v2->getName()
- << ") = (" << v2->getX() - v1->getX()
- << ", " << v2->getY() - v1->getY()
- << ", " << v2->getZ() - v1->getZ()
- << ")" << endl;
+ std::cout << " setPropag " << el_name
+ << " = " << nro
+ << " = (" << v1->getName() << ", " << v2->getName()
+ << ") = (" << v2->getX() - v1->getX()
+ << ", " << v2->getY() - v1->getY()
+ << ", " << v2->getZ() - v1->getZ()
+ << ")" << std::endl;
}
// ========================================================= getParent
Quad* Edge::getParent (int nro)
if (db)
{
- cout << " Edge " << el_name
- << " = (" << e_vertex[V_AMONT]->getName()
- << " , " << e_vertex[V_AVAL ]->getName()
- << ") addAssociation " << gline->getName ()
- << " (" << deb << ", " << fin << ")"
- << endl;
+ std::cout << " Edge " << el_name
+ << " = (" << e_vertex[V_AMONT]->getName()
+ << " , " << e_vertex[V_AVAL ]->getName()
+ << ") addAssociation " << gline->getName ()
+ << " (" << deb << ", " << fin << ")"
+ << std::endl;
PutCoord (asso->getOrigin ());
PutCoord (asso->getExtrem ());
}
if (geom == NULL)
{
if (el_root->debug ())
- cout << " Edge " << el_name << " addAssociation of NULL ignored"
- << endl;
+ std::cout << " Edge " << el_name << " addAssociation of NULL ignored"
+ << std::endl;
return HERR;
}
{
if (arc[nro] != NOTHING)
{
- if (ier==HOK) cout << endl;
- cout << " Association Edge " << el_name
- << " : Le vertex " << e_vertex[nro]->getName()
- << " : Le vertex " << e_vertex[nro]->getName()
- << " Touche les lignes " << arc [nro]
- << " et " << nass << endl;
+ if (ier==HOK) std::cout << std::endl;
+ std::cout << " Association Edge " << el_name
+ << " : Le vertex " << e_vertex[nro]->getName()
+ << " : Le vertex " << e_vertex[nro]->getName()
+ << " Touche les lignes " << arc [nro]
+ << " et " << nass << std::endl;
ier = 112;
}
arc [nro] = nass;
{
if (arc [nro] == NOTHING)
{
- if (ier==HOK) cout << endl;
- cout << " Association Edge " << el_name
- << " : Le vertex nro " << nro
- << " = " << e_vertex[nro]->getName()
- << " est isole" << endl;
+ if (ier==HOK) std::cout << std::endl;
+ std::cout << " Association Edge " << el_name
+ << " : Le vertex nro " << nro
+ << " = " << e_vertex[nro]->getName()
+ << " est isole" << std::endl;
PutCoord (ver_assoc[nro]);
ier = 111;
}
if (ier==HOK)
return ier;
- cout << " ** Controle associations (" << nombre << ") edge " << el_name
- << " = (" << e_vertex[V_AMONT]->getName()
- << " , " << e_vertex[V_AVAL ]->getName()
- << ")" << endl;
+ std::cout << " ** Controle associations (" << nombre << ") edge " << el_name
+ << " = (" << e_vertex[V_AMONT]->getName()
+ << " , " << e_vertex[V_AVAL ]->getName()
+ << ")" << std::endl;
for (int nv=0 ; nv<2 ; ++nv)
{
Vertex* node = e_vertex[nv];
- cout << node->getName() << " = (" << node->getX()
- << ", " << node->getY() << ", " << node->getZ()
- << ") -> "<< ver_assoc [nv][0] << ", " << ver_assoc [nv][1]
- << ", " << ver_assoc [nv][2] << ")" << endl;
+ std::cout << node->getName() << " = (" << node->getX()
+ << ", " << node->getY() << ", " << node->getZ()
+ << ") -> "<< ver_assoc [nv][0] << ", " << ver_assoc [nv][1]
+ << ", " << ver_assoc [nv][2] << ")" << std::endl;
}
for (int nass=0 ; nass<nombre ; ++nass)
{
AssoEdge* asso = tab_assoc[nass];
- cout << " " << nass << " :";
+ std::cout << " " << nass << " :";
asso->dump ();
}
EdgeShape* gline = geom->findEdge (point, p2);
if (gline==NULL)
{
- cout << " *** FindAssociation " << el_name << endl;
+ std::cout << " *** FindAssociation " << el_name << std::endl;
for (int nv=0 ; nv < V_TWO ; ++nv)
{
e_vertex [nv]-> getAssoCoord (point);
VertexShape* shape = geom->findVertex (point);
- cout << " *** Vertex nro " << nv;
+ std::cout << " *** Vertex nro " << nv;
if (shape==NULL)
{
- cout << " absent : ";
+ std::cout << " absent : ";
PutCoord (point);
}
else
{
- cout << " : Subid = " << shape->getIdent() << endl;
+ std::cout << " : Subid = " << shape->getIdent() << std::endl;
}
}
return NOTHING;
if (geom == NULL)
{
if (el_root->debug ())
- cout << " Edge " << el_name << " addAssociation of NULL ignored"
- << endl;
+ std::cout << " Edge " << el_name << " addAssociation of NULL ignored"
+ << std::endl;
return HERR;
}
if (gline == NULL)
{
if (el_root->debug ())
- cout << " Edge " << el_name << " addAssociation bad subid : "
- << subid << endl;
+ std::cout << " Edge " << el_name << " addAssociation bad subid : "
+ << subid << std::endl;
return HERR;
}
double db1 = calc_d2 (pb, p1);
double db2 = calc_d2 (pb, p2);
- cout << "setAssociation " << el_name << " :" <<endl;
+ std::cout << "setAssociation " << el_name << " :" <<std::endl;
if (da2 < da1 && db1 < db2)
{