From: Viktor UZLOV Date: Wed, 17 Feb 2021 09:22:13 +0000 (+0300) Subject: for SMESH 64bit X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1eb3353c12e82926c12c67e611d12369c43e542f;p=plugins%2Fghs3dplugin.git for SMESH 64bit --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index 192962a..3f8335c 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -2777,9 +2777,9 @@ bool GHS3DPlugin_GHS3D::Evaluate(SMESH_Mesh& aMesh, "Submesh can not be evaluated",this)); return false; } - std::vector aVec = (*anIt).second; - nbtri += Max(aVec[SMDSEntity_Triangle],aVec[SMDSEntity_Quad_Triangle]); - nbqua += Max(aVec[SMDSEntity_Quadrangle],aVec[SMDSEntity_Quad_Quadrangle]); + std::vector aVec = (*anIt).second; + nbtri += std::max(aVec[SMDSEntity_Triangle],aVec[SMDSEntity_Quad_Triangle]); + nbqua += std::max(aVec[SMDSEntity_Quadrangle],aVec[SMDSEntity_Quad_Quadrangle]); GProp_GProps G; BRepGProp::SurfaceProperties(F,G); double anArea = G.Mass(); @@ -2798,9 +2798,9 @@ bool GHS3DPlugin_GHS3D::Evaluate(SMESH_Mesh& aMesh, tmpMap.Add(E); SMESH_subMesh *aSubMesh = aMesh.GetSubMesh(exp.Current()); MapShapeNbElemsItr anIt = aResMap.find(aSubMesh); - std::vector aVec = (*anIt).second; + std::vector aVec = (*anIt).second; nb0d_e += aVec[SMDSEntity_Node]; - nb1d_e += Max(aVec[SMDSEntity_Edge],aVec[SMDSEntity_Quad_Edge]); + nb1d_e += std::max(aVec[SMDSEntity_Edge],aVec[SMDSEntity_Quad_Edge]); if(IsFirst) { IsQuadratic = (aVec[SMDSEntity_Quad_Edge] > aVec[SMDSEntity_Edge]); IsFirst = false; @@ -2818,7 +2818,7 @@ bool GHS3DPlugin_GHS3D::Evaluate(SMESH_Mesh& aMesh, int nbVols = int(aVolume/tetrVol/CoeffQuality); int nb1d_f = (nbtri*3 + nbqua*4 - nb1d_e) / 2; int nb1d_in = (int) ( nbVols*6 - nb1d_e - nb1d_f ) / 5; - std::vector aVec(SMDSEntity_Last); + std::vector aVec(SMDSEntity_Last); for(int i=SMDSEntity_Node; inext(); theMGInput->GmfSetLin( mfile, GmfTriangles, - tria->GetNode(0)->GetID(), - tria->GetNode(1)->GetID(), - tria->GetNode(2)->GetID(), + static_cast(tria->GetNode(0)->GetID()), + static_cast(tria->GetNode(1)->GetID()), + static_cast(tria->GetNode(2)->GetID()), tag ); } @@ -202,10 +202,10 @@ namespace { const SMDS_MeshElement* tet = tetIt->next(); theMGInput->GmfSetLin( mfile, GmfTetrahedra, - tet->GetNode(0)->GetID(), - tet->GetNode(2)->GetID(), - tet->GetNode(1)->GetID(), - tet->GetNode(3)->GetID(), + static_cast(tet->GetNode(0)->GetID()), + static_cast(tet->GetNode(2)->GetID()), + static_cast(tet->GetNode(1)->GetID()), + static_cast(tet->GetNode(3)->GetID()), tag ); }