From: eap Date: Thu, 29 Oct 2009 08:40:05 +0000 (+0000) Subject: 0020557: EDF 1151 SMESH: Netgen 2D fail to mesh a ring X-Git-Tag: RELIQUAT_5x_30102009 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e7f475be1f119a419db3597650c30b3b1ffb96c1;p=plugins%2Fnetgenplugin.git 0020557: EDF 1151 SMESH: Netgen 2D fail to mesh a ring --- diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx index 3b23620..e259be1 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx @@ -206,10 +206,6 @@ static TError AddSegmentsToMesh(netgen::Mesh& ngMesh, StdMeshers_FaceSidePtr wire = wires[ iW ]; const vector& uvPtVec = wire->GetUVPtStruct(); - bool reverse = // 20526: [CEA] Disk meshing fails - ( wire->NbEdges() == 1 && - geom.emap(geom.emap.FindIndex(wire->Edge(0))).Orientation() == TopAbs_REVERSED ); - int firstPointID = ngMesh.GetNP() + 1; int edgeID = 1, posID = -2; for ( int i = 0; i < wire->NbSegments(); ++i ) // loop on segments @@ -260,14 +256,6 @@ static TError AddSegmentsToMesh(netgen::Mesh& ngMesh, } seg.epgeominfo[ iEnd ].edgenr = edgeID; // = geom.emap.FindIndex(edge); } - // 20526: [CEA] Disk meshing fails - if (reverse) - { - swap (seg.p1, seg.p2); - swap (seg.epgeominfo[0].dist, seg.epgeominfo[1].dist); - swap (seg.epgeominfo[0].u, seg.epgeominfo[1].u); - swap (seg.epgeominfo[0].v, seg.epgeominfo[1].v); - } ngMesh.AddSegment (seg);