]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
IPAL21374 Add 0D element leads to visualization failure.
authordmv <dmv@opencascade.com>
Thu, 17 Sep 2009 13:18:43 +0000 (13:18 +0000)
committerdmv <dmv@opencascade.com>
Thu, 17 Sep 2009 13:18:43 +0000 (13:18 +0000)
src/OBJECT/SMESH_DeviceActor.cxx
src/OBJECT/SMESH_Object.cxx
src/SMESH_I/SMESH_Mesh_i.cxx

index 2a657eb34b87da6fb05ff0a9413aa0f1db403d74..2b7beccf86dd1d952535cacc38cab49091e24a96 100644 (file)
@@ -546,7 +546,6 @@ SMESH_DeviceActor
     aDataSet->Delete();
   }else if(FreeNodes* aFreeNodes = dynamic_cast<FreeNodes*>(theFunctor.get())){
     myExtractUnstructuredGrid->SetModeOfChanging(VTKViewer_ExtractUnstructuredGrid::eAdding);
-    vtkUnstructuredGrid* aGrid = myVisualObj->GetUnstructuredGrid();
     vtkIdType aNbNodes = myVisualObj->GetNbEntities(SMDSAbs_Node);
     for( vtkIdType i = 0; i < aNbNodes; i++ ){
       vtkIdType anObjId = myVisualObj->GetNodeObjId(i);
index 5f12330ef3c71b23fbdc8642aaa3d57389108f95..943f0896d712cf52163efd1da8b9c17a76baa616 100644 (file)
@@ -678,7 +678,7 @@ void SMESH_MeshObj::UpdateFunctor( const SMESH::Controls::FunctorPtr& theFunctor
 //=================================================================================
 bool SMESH_MeshObj::IsNodePrs() const
 {
-  return myClient->NbEdges() == 0 &&myClient->NbFaces() == 0 && myClient->NbVolumes() == 0 ;
+  return myClient->Nb0DElements() == 0 && myClient->NbEdges() == 0 && myClient->NbFaces() == 0 && myClient->NbVolumes() == 0 ;
 }
 
 
index e0c228dfa8a4fb3a95cc32cdefae190419f90d03..164b27407e5de45f978b8c9f6374c491841cf9ae 100644 (file)
@@ -2414,7 +2414,7 @@ CORBA::Long SMESH_Mesh_i::NbNodes()throw(SALOME::SALOME_Exception)
 CORBA::Long SMESH_Mesh_i::NbElements()throw (SALOME::SALOME_Exception)
 {
   Unexpect aCatch(SALOME_SalomeException);
-  return NbEdges() + NbFaces() + NbVolumes();
+  return Nb0DElements() + NbEdges() + NbFaces() + NbVolumes();
 }
 
 //=============================================================================