still doesn't werk
This commit is contained in:
parent
621f24dd8b
commit
151522fa57
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user