X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_PolygonPerFace_2D.cxx;h=f6a304aafea6aac498747a1d3e8c42f7df558bd0;hb=f20db3c5b3a2f78f9ff7579a59c7bd1d3eece20a;hp=5f3a21e8ad455b3ddf7eb1b6feb2f53a8d98eefe;hpb=a17b36970bc61da1d664453c615754997c925b18;p=modules%2Fsmesh.git diff --git a/src/StdMeshers/StdMeshers_PolygonPerFace_2D.cxx b/src/StdMeshers/StdMeshers_PolygonPerFace_2D.cxx index 5f3a21e8a..f6a304aaf 100644 --- a/src/StdMeshers/StdMeshers_PolygonPerFace_2D.cxx +++ b/src/StdMeshers/StdMeshers_PolygonPerFace_2D.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -37,21 +37,20 @@ #include #include +#include #include -#include using namespace std; //======================================================================= //function : StdMeshers_PolygonPerFace_2D -//purpose : +//purpose : //======================================================================= StdMeshers_PolygonPerFace_2D::StdMeshers_PolygonPerFace_2D(int hypId, - int studyId, SMESH_Gen* gen) - :SMESH_2D_Algo(hypId, studyId, gen) + :SMESH_2D_Algo(hypId, gen) { _name = "PolygonPerFace_2D"; } @@ -61,8 +60,8 @@ StdMeshers_PolygonPerFace_2D::StdMeshers_PolygonPerFace_2D(int hypId, //purpose : //======================================================================= -bool StdMeshers_PolygonPerFace_2D::CheckHypothesis(SMESH_Mesh& theMesh, - const TopoDS_Shape& theShape, +bool StdMeshers_PolygonPerFace_2D::CheckHypothesis(SMESH_Mesh& /*theMesh*/, + const TopoDS_Shape& /*theShape*/, SMESH_Hypothesis::Hypothesis_Status& theStatus) { theStatus = HYP_OK; @@ -87,10 +86,10 @@ bool StdMeshers_PolygonPerFace_2D::Compute(SMESH_Mesh& theMesh, if ( !proxyMesh ) return false; - TError erorr; + TError err; TSideVector wires = StdMeshers_FaceSide::GetFaceWires(face, theMesh, /*skipMediumNodes=*/_quadraticMesh, - erorr, proxyMesh, + err, &helper, proxyMesh, /*checkVertexNodes=*/false); if ( wires.size() != 1 ) return error( COMPERR_BAD_SHAPE, SMESH_Comment("One wire required, not ") << wires.size() ); @@ -137,7 +136,7 @@ bool StdMeshers_PolygonPerFace_2D::Evaluate(SMESH_Mesh& theMesh, nbQuadSegs += sm2vec->second.at( SMDSEntity_Quad_Edge ); } - std::vector aVec( SMDSEntity_Last, 0 ); + std::vector aVec( SMDSEntity_Last, 0 ); switch ( nbLinSegs + nbQuadSegs ) { case 3: aVec[ nbQuadSegs ? SMDSEntity_Quad_Triangle : SMDSEntity_Triangle ] = 1;