diff --git a/src/libs/ascent/runtimes/flow_filters/ascent_runtime_rendering_filters.cpp b/src/libs/ascent/runtimes/flow_filters/ascent_runtime_rendering_filters.cpp index ba7bbad24..c932c16c0 100644 --- a/src/libs/ascent/runtimes/flow_filters/ascent_runtime_rendering_filters.cpp +++ b/src/libs/ascent/runtimes/flow_filters/ascent_runtime_rendering_filters.cpp @@ -1915,6 +1915,9 @@ void generate_camera_meshes(conduit::Node &image_data){ vtkm::Vec vtkm_look = vtkm_look_at - vtkm_position; vtkm::Normalize(vtkm_look); + // round off any floating point imprecision left over by the normalization. + vtkm_look = vtkm::Round(vtkm_look / 0.000000001) * 0.000000001; + // Initializing and normalizing up vector float64_accessor up = camera["up"].value(); vtkm::Vec vtkm_up(up[0], up[1], up[2]);