]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Fix regressions connected to a new MeshGems (2.6-4)
authoreap <eap@opencascade.com>
Wed, 7 Mar 2018 13:06:26 +0000 (16:06 +0300)
committereap <eap@opencascade.com>
Wed, 7 Mar 2018 13:06:26 +0000 (16:06 +0300)
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index 09e3c30e20e69d19d7d6693728c0929560425206..405ef09fb2d542ccabe8b5f1e04e46ff6ff7167c 100644 (file)
@@ -2277,6 +2277,14 @@ bool BLSURFPlugin_BLSURF::compute(SMESH_Mesh&         aMesh,
           //      << "\t ID = " << nData.node->GetID() << endl;
           dcad_edge_discretization_set_vertex_coordinates( dedge, iN+1, t, uv, nXYZ.ChangeData() );
         }
+        TopoDS_Shape v = helper.GetSubShapeByNode( nodeDataVec[0].node, meshDS );
+        if ( !v.IsNull() && v.ShapeType() == TopAbs_VERTEX )
+          dcad_edge_discretization_set_vertex_tag( dedge, 1, pmap.Add( v ));
+
+        v = helper.GetSubShapeByNode( nodeDataVec.back().node, meshDS );
+        if ( !v.IsNull() && v.ShapeType() == TopAbs_VERTEX )
+          dcad_edge_discretization_set_vertex_tag( dedge, nbNodes, pmap.Add( v ));
+
         dcad_edge_discretization_set_property(dedge, DISTENE_DCAD_PROPERTY_REQUIRED);
       }