Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrew Bauer
VTK
Commits
bcd24f7c
Commit
bcd24f7c
authored
Nov 01, 1995
by
Ken Martin
Browse files
fixed bug in reading beyond dimensions of data
parent
36a35219
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vtkSweptSurface.cc
View file @
bcd24f7c
...
...
@@ -255,7 +255,9 @@ void vtkSweptSurface::SampleInput(vtkMatrix4x4& m, int inDim[3],
//check and make sure point is inside
if
(
loc
[
0
]
>=
0.0
&&
loc
[
1
]
>=
0.0
&&
loc
[
2
]
>=
0.0
&&
ijk
[
0
]
<
inDim
[
0
]
&&
ijk
[
1
]
<
inDim
[
1
]
&&
ijk
[
2
]
<
inDim
[
2
]
)
(
ijk
[
0
]
<
inDim
[
0
]
-
1
)
&&
(
ijk
[
1
]
<
inDim
[
1
]
-
1
)
&&
(
ijk
[
2
]
<
inDim
[
2
]
-
1
))
{
//get scalar values
idx
=
ijk
[
0
]
+
ijk
[
1
]
*
inDim
[
0
]
+
ijk
[
2
]
*
inSliceSize
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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