From: enk Date: Fri, 18 Feb 2005 07:03:56 +0000 (+0000) Subject: Added support for VTK_CONVEX_POINT_SET X-Git-Tag: T_22_03_05~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7969ba421d874372d5d15adaac1a2c49cca65f83;p=modules%2Fkernel.git Added support for VTK_CONVEX_POINT_SET --- 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++) {