Skip to content

Fix loss of precision in vtkPlanes::SetFrustumPlanes

vtkPlanes::SetFrustumPlanes(double planes[24]) method got plane positions in double, but the vtkPoints object that stored them used just floats. This caused loss of precision and warning "Common/Core/vtkAOSDataArrayTemplate.txx:132:38: runtime error: 1e+299 is outside the range of representable values of type 'float'" in TestLabelPlacementMapper.

Fixed by creating vtkPoints object using vtkPoints::New(VTK_DOUBLE).

This should address the test warning reported here: !5567 (comment 580012)

Merge request reports