]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Added support for VTK_CONVEX_POINT_SET
authorenk <enk@opencascade.com>
Fri, 18 Feb 2005 07:03:56 +0000 (07:03 +0000)
committerenk <enk@opencascade.com>
Fri, 18 Feb 2005 07:03:56 +0000 (07:03 +0000)
src/VTKFilter/SALOME_GeometryFilter.cxx

index 05e18db031f3d4f2a47bad7da00a6b03fb02c720..3fab9df811294d80cee77c3ffc33a83173b8af09 100644 (file)
@@ -306,7 +306,26 @@ void SALOME_GeometryFilter::UnstructuredGridExecute()
          }
          outputCD->CopyData(cd,cellId,newCellId);
           break;
-
+         
+       case VTK_CONVEX_POINT_SET:{
+         vtkCell* aCell = input->GetCell(cellId);
+         int aNbFaces = aCell->GetNumberOfFaces();
+         for (faceId=0; faceId < aNbFaces; faceId++){
+           vtkCell *aFace = aCell->GetFace(faceId);
+           numFacePts = aFace->GetNumberOfPoints();
+           aCellType = aFace->GetCellType();
+           for ( i=0; i < numFacePts; i++)
+             {
+               aNewPts[i] = aFace->GetPointId(i);
+             }
+           newCellId = output->InsertNextCell(aCellType,numFacePts,aNewPts);
+           if(myStoreMapping){
+             myVTK2ObjIds.push_back(cellId);
+           }
+           outputCD->CopyData(cd,cellId,newCellId);
+         }
+         break;
+       }
         case VTK_TETRA: {
           for (faceId = 0; faceId < 4; faceId++)
             {