still doesn't werk

This commit is contained in:
ccolin 2022-03-08 10:21:52 +01:00
parent 621f24dd8b
commit 151522fa57

View File

@ -126,7 +126,7 @@ vtkTypeBool RemoveExternalCellsFilter::RequestData(
vtkNew<vtkPoints> outPoints;
vtkNew<vtkIdList> outPointIds;
vtkIdType outPointId = 0;
outPointIds->Allocate(3);
outPointIds->SetNumberOfIds(4);
output->Allocate();
auto it = tetMesh->NewCellIterator();
for (it->InitTraversal();
@ -140,12 +140,14 @@ vtkTypeBool RemoveExternalCellsFilter::RequestData(
outPointIds->SetId(0, outPointId + 0);
outPointIds->SetId(1, outPointId + 1);
outPointIds->SetId(2, outPointId + 2);
outPointId += 3;
outPointIds->SetId(3, outPointId + 3);
outPointId += 4;
outPoints->InsertPoints(outPointIds, pointIds,
tetMesh->GetPoints());
output->InsertNextCell(it->GetCellType(), outPointIds);
}
}
outPoints->SetNumberOfPoints(outPointId + 3);
output->SetPoints(outPoints);
return true;