still doesn't werk
This commit is contained in:
parent
621f24dd8b
commit
151522fa57
@ -126,7 +126,7 @@ vtkTypeBool RemoveExternalCellsFilter::RequestData(
|
|||||||
vtkNew<vtkPoints> outPoints;
|
vtkNew<vtkPoints> outPoints;
|
||||||
vtkNew<vtkIdList> outPointIds;
|
vtkNew<vtkIdList> outPointIds;
|
||||||
vtkIdType outPointId = 0;
|
vtkIdType outPointId = 0;
|
||||||
outPointIds->Allocate(3);
|
outPointIds->SetNumberOfIds(4);
|
||||||
output->Allocate();
|
output->Allocate();
|
||||||
auto it = tetMesh->NewCellIterator();
|
auto it = tetMesh->NewCellIterator();
|
||||||
for (it->InitTraversal();
|
for (it->InitTraversal();
|
||||||
@ -140,12 +140,14 @@ vtkTypeBool RemoveExternalCellsFilter::RequestData(
|
|||||||
outPointIds->SetId(0, outPointId + 0);
|
outPointIds->SetId(0, outPointId + 0);
|
||||||
outPointIds->SetId(1, outPointId + 1);
|
outPointIds->SetId(1, outPointId + 1);
|
||||||
outPointIds->SetId(2, outPointId + 2);
|
outPointIds->SetId(2, outPointId + 2);
|
||||||
outPointId += 3;
|
outPointIds->SetId(3, outPointId + 3);
|
||||||
|
outPointId += 4;
|
||||||
outPoints->InsertPoints(outPointIds, pointIds,
|
outPoints->InsertPoints(outPointIds, pointIds,
|
||||||
tetMesh->GetPoints());
|
tetMesh->GetPoints());
|
||||||
output->InsertNextCell(it->GetCellType(), outPointIds);
|
output->InsertNextCell(it->GetCellType(), outPointIds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
outPoints->SetNumberOfPoints(outPointId + 3);
|
||||||
output->SetPoints(outPoints);
|
output->SetPoints(outPoints);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user