vtkMergePoints does not work properly with this mesh that comes from vtkMarchingCubes algorithm
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I use vtkMarchingCubes with these parameters:
pMarchingCubesFilter->SetInput(m_pImageData); pMarchingCubesFilter->SetValue(0,0.0); pMarchingCubesFilter->ComputeNormalsOff(); pMarchingCubesFilter->ComputeScalarsOff(); pMarchingCubesFilter->ComputeGradientsOff(); pMarchingCubesFilter->ReleaseDataFlagOn();
m_pImageData is a float implicit funcition with dimensions (279x176x141)
The result that I obtain is like a cut mesh. It looks like a continuous mesh but if I apply vtkFeatureEdges to visualiza the boundary edges it appears that is like cut in fillets. This can be seen in the attached files.
If I use vtkCleanPolyData to merge that points it does not work unless I set a tolerance higher that 0, so that the vtkPointLocator is used to merge that points.
Another way of solving this is to pass a vtkPointLocator to marching cubes algorithm so that it doesn't use vtkMergePoints.
I attach this mesh so that you can try to pass it through vtkCleanData using vtkMergePoints.