Salome HOME
regerssion of the test bugs/X6
authoreap <eap@opencascade.com>
Thu, 22 Nov 2012 14:24:52 +0000 (14:24 +0000)
committereap <eap@opencascade.com>
Thu, 22 Nov 2012 14:24:52 +0000 (14:24 +0000)
   compute nodes on VERTEX'es if they are not yet there

src/StdMeshers/StdMeshers_CompositeSegment_1D.cxx

index 2b584703861133bc1b9f99f76dc8efcda615adc7..14f9961ddd7d590cf2ce688de9117f783efcc5c3 100644 (file)
@@ -396,6 +396,15 @@ bool StdMeshers_CompositeSegment_1D::Compute(SMESH_Mesh &         aMesh,
 
   // Create mesh
 
+  // compute and get nodes on extremity VERTEX'es
+  SMESH_subMesh* smVFirst = aMesh.GetSubMesh( VFirst );
+  smVFirst->SetIsAlwaysComputed( false );
+  smVFirst->ComputeStateEngine( SMESH_subMesh::COMPUTE );
+  //
+  SMESH_subMesh* smVLast = aMesh.GetSubMesh( VLast );
+  smVLast->SetIsAlwaysComputed( false );
+  smVLast->ComputeStateEngine( SMESH_subMesh::COMPUTE );
+  //
   const SMDS_MeshNode * nFirst = SMESH_Algo::VertexNode( VFirst, meshDS );
   const SMDS_MeshNode * nLast  = SMESH_Algo::VertexNode( VLast, meshDS );
   if (!nFirst)