// C++ : Table d'hexaedres (Evol Versions 3)
-// Copyright (C) 2009-2016 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2019 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
NewShape* geom = el_root->addShape (name, SH_CYLINDER);
geom -> openShape();
- string brep;
+ std::string brep;
// Real3 vk = { normal->getDx(), normal->getDy(), normal->getDz() };
// normer_vecteur (vk);
double pmax = t_angles [ny+1]/360;
Edge* edge = getEdgeJ (nx, ny, nz);
geom->addAssociation (edge, subid, pmin, pmax);
- if (db) cout << " assoCylinders : ny= " << ny
- << ", nz= " << nz << " param = ("
- << pmin << ", " << pmax << ")\n";
+ if (db) std::cout << " assoCylinders : ny= " << ny
+ << ", nz= " << nz << " param = ("
+ << pmin << ", " << pmax << ")\n";
}
}
}
Vertex* nd2 = edge->getVertex (V_AVAL);
double pmin = calcul_param (ori, vi, nd1);
double pmax = calcul_param (ori, vi, nd2);
- cout << " assoRind : ny= " << ny << ", nz= " << nz
- << " param = (" << pmin << ", " << pmax << ")\n";
+ std::cout << " assoRind : ny= " << ny << ", nz= " << nz
+ << " param = (" << pmin << ", " << pmax << ")\n";
geom->addAssociation (edge, subid, pmin, pmax);
geom->addAssociation (quad, sphid);
{
Real3 oa, ob, normal;
Real3 pta, ptb, ptc, ptd;
- string brep;
+ std::string brep;
// Les 2 edges dont les petits cotes d'un rectangle de rapport L/l=sqrt(2)
// Soit le cercle circonscrit a ce rectangle.
if (vo1==NULL || vd1==NULL)
return HERR;
- string trep;
+ std::string trep;
Real3 pa, pb, vdir1, vdir2;
calc_vecteur (vo1->getPoint (pa), vd1->getPoint (pb), vdir1);
calc_vecteur (vo2->getPoint (pa), vd2->getPoint (pb), vdir2);
Shape* shape = tab_shapes[nro];
if (shape!=NULL)
{
- string brep = shape->getBrep();
+ std::string brep = shape->getBrep();
translate_brep (brep, vdir1, trep);
// Shape* tshape = new Shape (trep);
// tshape->setBounds (shape->getStart(), shape->getEnd());
Shape* shape = vo1->getAssociation ();
if (shape!=NULL && vd1->getAssociation ()==NULL)
{
- string brep = shape->getBrep();
+ std::string brep = shape->getBrep();
translate_brep (brep, vdir, trep);
// Shape* tshape = new Shape (trep);
// vd1->setAssociation (tshape);
char name [24];
sprintf (name, "0x%lx#%d", (unsigned long) shape, nh);
- map<string,int>::iterator iter = map_shape.find (name);
+ std::map<std::string,int>::iterator iter = map_shape.find (name);
if (iter != map_shape.end())
subid = iter->second;
else
sprintf (num, "%d", nro);
nro ++;
- string filename = radical;
+ std::string filename = radical;
filename += num;
filename += ".vtk";
int ier = saveVtk (filename.c_str());