How is it possible? What is wrong in my code?I insert a face of 4 ids and get
back a face of 64 ids!
vtkCellArray *faces = vtkCellArray::New(); vtkIdList *fIds =
vtkIdList::New(); for (int i=0 ; i<faceIds.size() ; i++) { for (int j=0 ;
j<faceIds[i].size() ; j++) fIds->InsertNextId(faceIds[i][j]);
printf("inserting face %d of %d ids\n", i, (int)fIds->GetNumberOfIds());
faces->InsertNextCell(fIds); { vtkIdType nbpts; vtkIdList *list =
vtkIdList::New(); faces->GetCell(i, list); printf("face %d has now %d
ids\n", i, (int)list->GetNumberOfIds()); } fIds->Reset(); }
inserting face 0 of 4 idsface 0 has now 4 idsinserting face 1 of 4 idsface 1
has now 64 ids
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview