From 18409329fea6a7dcc302553c5bc1cae1d4479d58 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 20 Feb 2013 08:44:49 +0000 Subject: [PATCH] 0022005: Error at the end of NETGEN 3D spheres mesh while tetrahedrons have been generated SMESH_Algo::IsReversedSubMesh() is moved to SMESH_MesherHelper --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 4 ++-- src/NETGENPlugin/NETGENPlugin_NETGEN_3D.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.2