VTK
Calculate Distance From A Point To PolyData In VTK
We can use vtkImplicitPolyDataDistance to calculate the distance from a point to the target polydata. It’s better than calculating the distance by iterating to the search point. The following example puts a sphere that radius is 1 and origin is Read more…