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
Christian Butz
VTK
Commits
ae9f15c6
Commit
ae9f15c6
authored
Feb 21, 2008
by
David Gobbi
Browse files
BUG: fix index error, rename "id" to "threadId"
parent
280d3bd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Hybrid/vtkPolyDataToImageStencil.cxx
View file @
ae9f15c6
...
...
@@ -74,7 +74,7 @@ POSSIBILITY OF SUCH DAMAGES.
#include
<vtkstd/algorithm>
vtkCxxRevisionMacro
(
vtkPolyDataToImageStencil
,
"1.2
4
"
);
vtkCxxRevisionMacro
(
vtkPolyDataToImageStencil
,
"1.2
5
"
);
vtkStandardNewMacro
(
vtkPolyDataToImageStencil
);
vtkCxxSetObjectMacro
(
vtkPolyDataToImageStencil
,
InformationInput
,
vtkImageData
);
...
...
@@ -329,7 +329,7 @@ static void vtkFloatingEndPointScanConvertLine2D(
double
inverseDenominator
=
1.0
/
(
y2
-
y1
);
// Take z coordinate and extents into account for bucket index
int
idx0
=
(
z
-
extent
[
4
])
*
(
extent
[
3
]
-
extent
[
2
])
-
extent
[
2
];
int
idx0
=
(
z
-
extent
[
4
])
*
(
extent
[
3
]
-
extent
[
2
]
+
1
)
-
extent
[
2
];
// Go along y and place each x in the proper (y,z) bucket.
for
(
int
y
=
Ay
;
y
<=
By
;
y
++
)
...
...
@@ -343,7 +343,7 @@ static void vtkFloatingEndPointScanConvertLine2D(
void
vtkPolyDataToImageStencil
::
ThreadedExecute
(
vtkImageStencilData
*
data
,
int
extent
[
6
],
int
i
d
)
int
threadI
d
)
{
// Description of algorithm:
// 1) cut the polydata at each z slice to create polylines
...
...
@@ -393,7 +393,7 @@ void vtkPolyDataToImageStencil::ThreadedExecute(
int
idxY
,
idxZ
;
for
(
idxZ
=
extent
[
4
];
idxZ
<=
extent
[
5
];
idxZ
++
)
{
if
(
i
d
==
0
&&
extent
[
4
]
!=
extent
[
5
])
if
(
threadI
d
==
0
&&
extent
[
4
]
!=
extent
[
5
])
{
this
->
UpdateProgress
((
idxZ
-
extent
[
4
])
*
1.0
/
(
extent
[
5
]
-
extent
[
4
]));
}
...
...
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