X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FStdMeshers%2FStdMeshers_BlockRenumber.cxx;h=b75715bee17f766a30c281a0e71317aed6272822;hb=HEAD;hp=bc2e63a430143c79286215311c10bb40387bdbdf;hpb=d245f797f1b69aca678fa372391275d7042faa10;p=modules%2Fsmesh.git diff --git a/src/StdMeshers/StdMeshers_BlockRenumber.cxx b/src/StdMeshers/StdMeshers_BlockRenumber.cxx index bc2e63a43..727a3e2d5 100644 --- a/src/StdMeshers/StdMeshers_BlockRenumber.cxx +++ b/src/StdMeshers/StdMeshers_BlockRenumber.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -26,14 +26,15 @@ #include "StdMeshers_BlockRenumber.hxx" -#include "SMDS_EdgePosition.hxx" -#include "SMDS_FacePosition.hxx" -#include "SMESHDS_Mesh.hxx" -#include "SMESHDS_SubMesh.hxx" -#include "SMESH_Algo.hxx" -#include "SMESH_Mesh.hxx" -#include "SMESH_MesherHelper.hxx" -#include "SMESH_TryCatch.hxx" +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -41,7 +42,6 @@ #include #include -#include //============================================================================= /*! @@ -127,7 +127,7 @@ bool StdMeshers_BlockRenumber::IsSolidIncluded( SMESH_Mesh& mesh, //======================================================================= SMESH_ComputeErrorPtr StdMeshers_BlockRenumber::CheckHypothesis(SMESH_Mesh& aMesh, - const TopoDS_Shape& aShape) const + const TopoDS_Shape& /*shape*/) const { SMESH_Comment errorTxt; for ( size_t i = 0; i < _blockCS.size() && errorTxt.empty(); ++i ) @@ -203,11 +203,11 @@ TopoDS_Vertex StdMeshers_RenumberHelper::GetVertex000( const TopTools_MapOfShape } //======================================================================= -//function : GetVertex000 -//purpose : Find default vertex at (0,0,0) local position +//function : GetVertexAtPoint +//purpose : Return the VERTEX of solid at given point //======================================================================= -TopoDS_Vertex StdMeshers_RenumberHelper::GetVertexAtPoint( const TopoDS_Shape& solid, +TopoDS_Vertex StdMeshers_RenumberHelper::GetVertexAtPoint( const TopoDS_Shape& solid, const TopoDS_Shape& point ) { if ( !solid.IsNull() && !point.IsNull() && point.ShapeType() == TopAbs_VERTEX ) @@ -296,8 +296,7 @@ istream & StdMeshers_BlockRenumber::LoadFrom(istream & load) { SMESH_TRY; - boost::archive::text_iarchive archive( load ); - archive >> *this; + SMESHUtils::BoostTxtArchive( load ) >> *this; SMESH_CATCH( SMESH::doNothing ); @@ -313,7 +312,7 @@ namespace boost { //======================================================================= template - void serialize(Archive & ar, StdMeshers_BlockCS & blockCS, const unsigned int version) + void serialize(Archive & ar, StdMeshers_BlockCS & blockCS, const unsigned int /*version*/) { ar & blockCS._solid; ar & blockCS._vertex000;