Hi everybody,
I want to substract wo polydatas and i am using vtkBooleanOperationPolyDataFilter and it takes hours even for polydatas that are not very big. Any idea how to speed up the process? or any other way to do a substraction between 2 polydatas?. The inputs are correct because i visualized them.
Thanks
// Triangle Filter
vtkTriangleFilter * triangle_filter
= vtkTriangleFilter::New();
triangle_filter->SetInputConnection
(fillHolesFilter->GetOutputPort());
vtkTriangleFilter * triangle_filter2
= vtkTriangleFilter::New();
triangle_filter2->SetInputConnection
(warp->GetOutputPort());
vtkSmartPointer<vtkBooleanOperationPolyDataFilter> boolFilter =
vtkSmartPointer<vtkBooleanOperationPolyDataFilter>::New();
boolFilter->SetInputConnection(0, triangle_filter2->GetOutputPort());
boolFilter->SetInputConnection(1, triangle_filter->GetOutputPort());
boolFilter->Update();