VTK
VTK – Calculate Distance Between Two 3D Models
The post shows a way to calculate unsigned distance Between Two 3D Models. The models can’t have too low resolution because the result that vtkDistancePolyDataFilter computes will not be accurate. #include <vtkActor.h> #include <vtkCleanPolyData.h> #include <vtkDistancePolyDataFilter.h> #include <vtkNamedColors.h> #include <vtkNew.h> #include <vtkPointData.h> #include <vtkPolyDataMapper.h> #include <vtkPolyDataReader.h> #include <vtkProperty.h> #include <vtkRenderWindow.h> Read more…