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
Christian Butz
VTK
Commits
b9ac0bc2
Commit
b9ac0bc2
authored
Apr 07, 2004
by
Charles Law
Browse files
Fix paraview hanging problem.
parent
10e2aaa4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Graphics/vtkConeSource.cxx
View file @
b9ac0bc2
...
...
@@ -23,7 +23,7 @@
#include
<math.h>
vtkCxxRevisionMacro
(
vtkConeSource
,
"1.6
5
"
);
vtkCxxRevisionMacro
(
vtkConeSource
,
"1.6
6
"
);
vtkStandardNewMacro
(
vtkConeSource
);
//----------------------------------------------------------------------------
...
...
@@ -66,6 +66,10 @@ void vtkConeSource::Execute()
int
createBottom
;
piece
=
output
->
GetUpdatePiece
();
if
(
piece
>=
this
->
Resolution
)
{
return
;
}
numPieces
=
output
->
GetUpdateNumberOfPieces
();
maxPieces
=
this
->
Resolution
!=
0
?
this
->
Resolution
:
1
;
if
(
numPieces
>
maxPieces
)
...
...
@@ -263,7 +267,7 @@ void vtkConeSource::Execute()
//----------------------------------------------------------------------------
void
vtkConeSource
::
ExecuteInformation
()
{
this
->
GetOutput
()
->
SetMaximumNumberOfPieces
(
this
->
Resolution
);
this
->
GetOutput
()
->
SetMaximumNumberOfPieces
(
-
1
);
}
...
...
Graphics/vtkLineSource.cxx
View file @
b9ac0bc2
...
...
@@ -22,7 +22,7 @@
#include
"vtkPolyData.h"
#include
<math.h>
vtkCxxRevisionMacro
(
vtkLineSource
,
"1.4
4
"
);
vtkCxxRevisionMacro
(
vtkLineSource
,
"1.4
5
"
);
vtkStandardNewMacro
(
vtkLineSource
);
vtkLineSource
::
vtkLineSource
(
int
res
)
...
...
@@ -38,6 +38,13 @@ vtkLineSource::vtkLineSource(int res)
this
->
Resolution
=
(
res
<
1
?
1
:
res
);
}
void
vtkLineSource
::
ExecuteInformation
()
{
this
->
GetOutput
()
->
SetMaximumNumberOfPieces
(
-
1
);
}
void
vtkLineSource
::
Execute
()
{
int
numLines
=
this
->
Resolution
;
...
...
@@ -49,6 +56,11 @@ void vtkLineSource::Execute()
vtkCellArray
*
newLines
;
vtkPolyData
*
output
=
this
->
GetOutput
();
if
(
output
->
GetUpdatePiece
()
>
0
)
{
return
;
}
vtkDebugMacro
(
<<
"Creating line"
);
newPoints
=
vtkPoints
::
New
();
...
...
Graphics/vtkLineSource.h
View file @
b9ac0bc2
...
...
@@ -50,6 +50,7 @@ protected:
~
vtkLineSource
()
{};
void
Execute
();
void
ExecuteInformation
();
double
Point1
[
3
];
double
Point2
[
3
];
int
Resolution
;
...
...
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