Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Michael Migliore
VTK
Commits
99e33d0e
Commit
99e33d0e
authored
Feb 18, 2010
by
Lisa Avila
Browse files
STYLE: a bit of code clean up
parent
bb7a84fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
VolumeRendering/Testing/Cxx/TestGPURayCastCompositeMask.cxx
View file @
99e33d0e
...
...
@@ -68,15 +68,9 @@ int TestGPURayCastCompositeMask(int argc, char *argv[])
}
distance
=
distance
/
2.0
;
cout
<<
"spacing[3]="
<<
spacing
[
0
]
<<
", "
<<
spacing
[
1
]
<<
","
<<
spacing
[
2
]
<<
endl
;
// This does not take the screen size of a cell into account.
// distance has to be smaller: min(nyquis,screensize)
// distance=distance/4.0; // hack
// distance=distance/4.0; // hack
cout
<<
"demo sample distance="
<<
distance
<<
endl
;
mapper
->
SetSampleDistance
(
static_cast
<
float
>
(
distance
));
vtkColorTransferFunction
*
colorFun
=
vtkColorTransferFunction
::
New
();
...
...
@@ -126,9 +120,6 @@ int TestGPURayCastCompositeMask(int argc, char *argv[])
grid2
->
SetFillValue
(
0
);
grid2
->
SetGridSpacing
(
6
,
6
,
6
);
grid2
->
Update
();
// mapper->SetMaskInput(grid2->GetOutput());
// grid2->Delete();
vtkImageCheckerboard
*
checkerboard
=
vtkImageCheckerboard
::
New
();
checkerboard
->
SetInputConnection
(
0
,
grid
->
GetOutputPort
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment