1 /*=========================================================================
2 
3   Program:   Visualization Toolkit
4   Module:    PreIntegrationNonIncremental.cxx
5 
6   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7   All rights reserved.
8   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10      This software is distributed WITHOUT ANY WARRANTY; without even
11      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12      PURPOSE.  See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
16 #include "ExerciseUnstructuredGridRayCastMapper.h"
17 
18 #include "vtkUnstructuredGridPreIntegration.h"
19 
CreatePreIntegration()20 static vtkUnstructuredGridVolumeRayIntegrator *CreatePreIntegration()
21 {
22   vtkUnstructuredGridPreIntegration *integrator =
23     vtkUnstructuredGridPreIntegration::New();
24 
25   // Turn off incremental building of the table.
26   integrator->IncrementalPreIntegrationOff();
27 
28   // Make the table much smaller since it takes much longer to build.
29   integrator->SetIntegrationTableScalarResolution(32);
30   integrator->SetIntegrationTableLengthResolution(64);
31 
32   return integrator;
33 }
34 
PreIntegrationNonIncremental(int argc,char * argv[])35 int PreIntegrationNonIncremental(int argc, char *argv[])
36 {
37   return ExerciseUnstructuredGridRayCastMapper(argc, argv, NULL,
38                                                CreatePreIntegration, 0, 0);
39 }
40