From: eap Date: Wed, 20 Feb 2013 08:44:49 +0000 (+0000) Subject: 0022005: Error at the end of NETGEN 3D spheres mesh while tetrahedrons have been... X-Git-Tag: V6_main_FINAL~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=18409329fea6a7dcc302553c5bc1cae1d4479d58;p=plugins%2Fnetgenplugin.git 0022005: Error at the end of NETGEN 3D spheres mesh while tetrahedrons have been generated SMESH_Algo::IsReversedSubMesh() is moved to SMESH_MesherHelper --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index e3cc305..5ded920 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -832,8 +832,8 @@ bool NETGENPlugin_Mesher::FillNgMesh(netgen::OCCGeometry& occgeom, TopoDS_Shape solid = occgeom.somap( solidID1 ); TopAbs_Orientation faceOriInSolid = helper.GetSubShapeOri( solid, geomFace ); if ( faceOriInSolid >= 0 ) - reverse = SMESH_Algo::IsReversedSubMesh - ( TopoDS::Face( geomFace.Oriented( faceOriInSolid )), helper.GetMeshDS() ); + reverse = + helper.IsReversedSubMesh( TopoDS::Face( geomFace.Oriented( faceOriInSolid ))); } // Add surface elements diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx index 0e5a87f..e693206 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx @@ -247,7 +247,7 @@ bool NETGENPlugin_NETGEN_3D::Compute(SMESH_Mesh& aMesh, helper.NbAncestors(aShapeFace, aMesh, aShape.ShapeType()) > 1 ) // IsReversedSubMesh() can work wrong on strongly curved faces, // so we use it as less as possible - isRev = SMESH_Algo::IsReversedSubMesh( TopoDS::Face(aShapeFace), meshDS ); + isRev = helper.IsReversedSubMesh( TopoDS::Face( aShapeFace )); const SMESHDS_SubMesh * aSubMeshDSFace = proxyMesh->GetSubMesh( aShapeFace ); if ( !aSubMeshDSFace ) continue;