From 29d2b5bc27b51e6003f5460c314471805f2250a3 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 7 Mar 2018 16:06:26 +0300 Subject: [PATCH] Fix regressions connected to a new MeshGems (2.6-4) --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 09e3c30..405ef09 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -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); } -- 2.30.2