clipping a polydata using the implicit of another polydata via vtkClipPolyData leads to a big hole on the cut side.
vtkSmartPointer<vtkPolyData> clipMesh (const vtkSmartPointer<vtkPolyData> &mesh1, const vtkSmartPointer<vtkPolyData> &mesh2) {
vtkNew<vtkImplicitPolyDataDistance> implicit_distance_2;
implicit_distance_2->SetInput(mesh2);
vtkNew<vtkClipPolyData> clip;
clip->SetInputData(mesh1);
clip->SetClipFunction(implicit_distance_2);
clip->Update();
return clip->GetOutput();
}
I dont understand why the mesh returned has a no surface on the clipped side. Please let me know how I can improve this function to have a water tight mesh.
Edited by Mathieu Westphal (Kitware)