[vtkusers] Create a vtkDelaunay3D from vtkCleanPolyData object
Erik Henneberg
henneberg at inmach.de
Mon Mar 19 09:19:35 EDT 2012
Problem solved, i added an vertexFilter and made a shallow copy, now it
works !?!
My code is now:
Create and fill vtkPoints
pointsPolyData->SetPoints(points)
vertexFilter->SetInputConnection(pointsPolyData->GetProducerPort())
//added
vertexFilter->Update()
//added
//pointsPolyData->Reset() //should i add this? or should i
use a new polyData object?
pointsPolyData->ShallowCopy(vertexFilter->GetOutput())
//added
cleanPolyData->SetInput(pointsPolyData)
I really don't know why this works, i'm a bit confused...
Maybe i should add pointsPolyData->Reset() after vertexFilter->Update()
but it works without a reset.
Greetings
Erik
More information about the vtkusers
mailing list