0030497: [REGRESSION] Mesh - wrong Poly_Polygon3D within local selection of located...
authornds <nds@opencascade.com>
Thu, 28 Feb 2019 06:55:53 +0000 (09:55 +0300)
committerapn <apn@opencascade.com>
Thu, 28 Feb 2019 17:24:43 +0000 (20:24 +0300)
commit967d2f4f301c079f3cbe689d88dad155bae2dada
treed9615d017d0002969ade00675d7d3b8ae75c8ee0
parent4ec8ee66a003bd45ede96c43539fad2dbd8dcac9
0030497: [REGRESSION] Mesh - wrong Poly_Polygon3D within local selection of located shape

The previous code has a condition to avoid processing the same faces if the face has a location.
The similar condition should be applied during the edges processing.
If not doing this, in the previous implementation, IMeshData_Edge instances are created for all edges(even located), but edges of faces located are not filled with curves.
As a result we had wrong local selection of edges.

Limit addition of edges to data model by ones with unique TShape and location using edges map already available in BRepMesh_ShapeVisitor.
src/BRepMesh/BRepMesh_ShapeVisitor.cxx
src/IMeshTools/IMeshTools_ShapeExplorer.cxx
tests/bugs/mesh/bug25364
tests/bugs/moddata_3/bug30497 [new file with mode: 0644]