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
debian
VTK
Commits
ccc82fcb
Commit
ccc82fcb
authored
Jul 07, 2016
by
Will Schroeder
Browse files
Eliminate last advance operation on each voxel row
parent
e181456d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Filters/Core/vtkFlyingEdges3D.cxx
View file @
ccc82fcb
...
...
@@ -1057,6 +1057,7 @@ GenerateOutput(double value, T* rowPtr, vtkIdType row, vtkIdType slice)
const
T
*
sPtr
=
rowPtr
+
xL
*
incs
[
0
];
const
double
xSpace
=
this
->
Spacing
[
0
];
const
vtkIdType
dim0Wall
=
this
->
Dims
[
0
]
-
2
;
const
vtkIdType
endVoxel
=
xR
-
1
;
for
(
i
=
xL
;
i
<
xR
;
++
i
)
{
...
...
@@ -1080,8 +1081,8 @@ GenerateOutput(double value, T* rowPtr, vtkIdType row, vtkIdType slice)
this
->
AdvanceVoxelIds
(
eCase
,
eIds
);
}
//
a
dvance along voxel row if not at the end
if
(
i
<
dim0Wal
l
)
//
A
dvance along voxel row if not at the end
. Saves a little work.
if
(
i
<
endVoxe
l
)
{
ePtr
[
0
]
++
;
ePtr
[
1
]
++
;
ePtr
[
2
]
++
;
ePtr
[
3
]
++
;
eCase
=
this
->
GetEdgeCase
(
ePtr
);
...
...
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