From 83369ed95aa080f799588f09519865f35ea4b344 Mon Sep 17 00:00:00 2001 From: Kenneth Moreland Date: Mon, 12 Jul 2021 08:06:51 -0600 Subject: [PATCH] Remove unused fields from Ortho2DRayGen There were apparently some fields copy/pasted from the 3D version were not used in the 2D version (probably because they had no meaning). In one case, one was erroneously normalized, and could cause a floating point exception. --- vtkm/rendering/raytracing/Camera.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vtkm/rendering/raytracing/Camera.cxx b/vtkm/rendering/raytracing/Camera.cxx index b71847814..90d53885a 100644 --- a/vtkm/rendering/raytracing/Camera.cxx +++ b/vtkm/rendering/raytracing/Camera.cxx @@ -237,9 +237,7 @@ public: vtkm::Int32 Minx; vtkm::Int32 Miny; vtkm::Int32 SubsetWidth; - vtkm::Vec3f_32 nlook; // normalized look vtkm::Vec3f_32 PixelDelta; - vtkm::Vec3f_32 delta_y; vtkm::Vec3f_32 StartOffset; VTKM_CONT @@ -279,9 +277,6 @@ public: StartOffset[1] = startOffset[1]; // always push the rays back from the origin StartOffset[2] = -1.f; - - - vtkm::Normalize(nlook); } using ControlSignature =