Skip to content
Snippets Groups Projects
Commit 6694a0fa authored by Aashish Chaudhary's avatar Aashish Chaudhary
Browse files

Fixed failing test

Updated correct baseline
parent 2a22829d
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,9 @@
#include "vtkCamera.h"
#include "vtkColorTransferFunction.h"
#include "vtkGPUVolumeRayCastMapper.h"
#include "vtkImageActor.h"
#include "vtkImageData.h"
#include "vtkImageMapper3D.h"
#include "vtkNew.h"
#include "vtkOpenGLGPUVolumeRayCastMapper.h"
#include "vtkPiecewiseFunction.h"
......@@ -95,6 +97,22 @@ int TestGPURayCastRenderToTexture(int argc, char *argv[])
ren->ResetCamera();
ren->GetActiveCamera()->Zoom(1.8);
renWin->Render();
vtkNew<vtkImageData> im;
// Get color texture as image
volumeMapper->GetColorImage(im.GetPointer());
ren->RemoveVolume(volume.GetPointer());
vtkNew<vtkImageActor> ia;
ia->GetMapper()->SetInputData(im.GetPointer());
ren->AddActor(ia.GetPointer());
ren->GetActiveCamera()->SetPosition(0, 0, -1);
ren->GetActiveCamera()->SetFocalPoint(0, 0, 1);
ren->GetActiveCamera()->SetViewUp(0, 1, 0);
ren->ResetCamera();
renWin->Render();
iren->Initialize();
int retVal = vtkRegressionTestImage( renWin.GetPointer() );
......
d33ad474652b896a6bf400c41b77bda9
a01c48103d1ac0bf6c02e157af253de6
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment