]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To introduce ID's mapping (improve MeshOnEntity ID's mapping)
authorapo <apo@opencascade.com>
Thu, 1 Sep 2005 07:11:02 +0000 (07:11 +0000)
committerapo <apo@opencascade.com>
Thu, 1 Sep 2005 07:11:02 +0000 (07:11 +0000)
src/CONVERTOR/VISU_Convertor_impl.cxx

index bfe9c21e089fb5aa4eaf465ee668fcbc91595802..0f008c8f7f0ff62548fc47045e196cb6dd5a7d57 100644 (file)
@@ -28,7 +28,6 @@
 #include "VISU_ConvertorUtils.hxx"
 
 #include <vtkPoints.h>
-#include <vtkAppendFilter.h>
 #include <vtkUnstructuredGrid.h>
 
 #include <vtkIdList.h>
@@ -59,7 +58,7 @@ static int MYVTKDEBUG = 0;
 
 #ifdef _DEBUG_
 static int MYDEBUG = 1;
-static int MYDEBUGWITHFILES = 0;
+static int MYDEBUGWITHFILES = 1;
 #else
 static int MYDEBUG = 0;
 static int MYDEBUGWITHFILES = 0;
@@ -1155,6 +1154,8 @@ namespace
       return;
     
     const TVTKAppendFilter& anAppendFilter = theProfile->GetFilter();
+    anAppendFilter->SetPoints(GetPoints(theMesh));
+
     if(theProfile->myIsAll){
       TDataSet* aDataSet = theMeshOnEntity->GetDataSet();
       anAppendFilter->AddInput(aDataSet);
@@ -1484,6 +1485,7 @@ VISU_Convertor_impl
       if(MYVTKDEBUG) anAppendFilter->DebugOn();
 
       LoadMeshOnEntity(aMesh,aMeshOnEntity);
+      anAppendFilter->SetPoints(GetPoints(aMesh));
       
       const TGeom2SubMesh& aGeom2SubMesh = aMeshOnEntity->myGeom2SubMesh;
       TGeom2SubMesh::const_iterator anIter = aGeom2SubMesh.begin();
@@ -1621,6 +1623,7 @@ VISU_Convertor_impl
     if(!aGroup->myIsVTKDone){
       const VISU::TFamilySet& aFamilySet = aGroup->myFamilySet;
       LoadMeshOnGroup(aMesh,aFamilySet);
+      anAppendFilter->SetPoints(GetPoints(aMesh));
 
       TFamilySet::const_iterator anIter = aFamilySet.begin();