mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-08 03:18:58 +00:00
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.
This commit is contained in:
parent
c1a790db2d
commit
83369ed95a
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user