Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VTK
VTK
Commits
96b994f1
Commit
96b994f1
authored
Aug 12, 2015
by
Ken Martin
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix shadowed var
parent
57daf0bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Rendering/OpenGL2/vtkOpenGLPointGaussianMapper.cxx
Rendering/OpenGL2/vtkOpenGLPointGaussianMapper.cxx
+8
-8
No files found.
Rendering/OpenGL2/vtkOpenGLPointGaussianMapper.cxx
View file @
96b994f1
...
...
@@ -344,10 +344,10 @@ void vtkOpenGLPointGaussianMapperHelperPackVBOTemplate3(
float
opacity
=
opacities
->
GetComponent
(
index
,
0
);
if
(
self
->
OpacityTable
)
{
float
index
=
(
opacity
-
self
->
OpacityOffset
)
*
self
->
OpacityScale
;
int
iindex
=
static_cast
<
int
>
(
index
);
opacity
=
(
1.0
-
index
+
iindex
)
*
self
->
OpacityTable
[
iindex
]
+
(
index
-
iindex
)
*
self
->
OpacityTable
[
iindex
+
1
];
float
t
index
=
(
opacity
-
self
->
OpacityOffset
)
*
self
->
OpacityScale
;
int
i
t
index
=
static_cast
<
int
>
(
t
index
);
opacity
=
(
1.0
-
t
index
+
i
t
index
)
*
self
->
OpacityTable
[
i
t
index
]
+
(
t
index
-
i
t
index
)
*
self
->
OpacityTable
[
i
t
index
+
1
];
}
rcolor
.
c
[
3
]
=
opacity
*
255.0
;
}
...
...
@@ -372,10 +372,10 @@ void vtkOpenGLPointGaussianMapperHelperPackVBOTemplate3(
radius
*=
defaultScale
;
if
(
self
->
ScaleTable
)
{
float
index
=
(
radius
-
self
->
ScaleOffset
)
*
self
->
ScaleScale
;
int
iindex
=
static_cast
<
int
>
(
index
);
radius
=
(
1.0
-
index
+
iindex
)
*
self
->
ScaleTable
[
iindex
]
+
(
index
-
iindex
)
*
self
->
ScaleTable
[
iindex
+
1
];
float
t
index
=
(
radius
-
self
->
ScaleOffset
)
*
self
->
ScaleScale
;
int
i
t
index
=
static_cast
<
int
>
(
t
index
);
radius
=
(
1.0
-
t
index
+
i
t
index
)
*
self
->
ScaleTable
[
i
t
index
]
+
(
t
index
-
i
t
index
)
*
self
->
ScaleTable
[
i
t
index
+
1
];
}
radius
*=
3.0
;
...
...
Ken Martin
@ken-martin
mentioned in commit
6f0c543f
·
Aug 12, 2015
mentioned in commit
6f0c543f
mentioned in commit 6f0c543fa21fb1d39160c981b42d4a5ff9354ba4
Toggle commit list
Write
Preview
Markdown
is supported
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