From 7969ba421d874372d5d15adaac1a2c49cca65f83 Mon Sep 17 00:00:00 2001 From: enk Date: Fri, 18 Feb 2005 07:03:56 +0000 Subject: [PATCH] Added support for VTK_CONVEX_POINT_SET --- src/VTKFilter/SALOME_GeometryFilter.cxx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/VTKFilter/SALOME_GeometryFilter.cxx b/src/VTKFilter/SALOME_GeometryFilter.cxx index 05e18db03..3fab9df81 100644 --- a/src/VTKFilter/SALOME_GeometryFilter.cxx +++ b/src/VTKFilter/SALOME_GeometryFilter.cxx @@ -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++) { -- 2.39.2