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
c26b0b2c
Commit
c26b0b2c
authored
Dec 02, 2011
by
Philippe Pébay
Browse files
Have valid pole coordinates by default
Change-Id: If0381ba601d7f1e21fbbb0a4ac66623c08edcb1c
parent
dbfeeb23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Examples/Hybrid/Python/CylinderAndPolarAxes.py
View file @
c26b0b2c
...
...
@@ -39,7 +39,6 @@ renderer.SetActiveCamera( camera )
# Create polar axes
polaxes
=
vtkPolarAxesActor
()
polaxes
.
SetBounds
(
cylinder
.
GetOutput
().
GetBounds
()
)
polaxes
.
SetPole
(
pole
)
polaxes
.
SetAutoScaleRadius
(
0
)
polaxes
.
SetMaximumRadius
(
4.5
)
...
...
Hybrid/vtkPolarAxesActor.cxx
View file @
c26b0b2c
...
...
@@ -122,9 +122,9 @@ vtkPolarAxesActor::vtkPolarAxesActor() : vtkActor()
this
->
Bounds
[
4
]
=
-
1.0
;
this
->
Bounds
[
5
]
=
1.0
;
// Default pole coordinates
this
->
Pole
[
0
]
=
VTK_DOUBLE_MAX
;
this
->
Pole
[
1
]
=
VTK_DOUBLE_MAX
;
this
->
Pole
[
2
]
=
VTK_DOUBLE_MAX
;
this
->
Pole
[
0
]
=
0.
;
this
->
Pole
[
1
]
=
0.
;
this
->
Pole
[
2
]
=
0.
;
// Default number of radial axes
this
->
NumberOfRadialAxes
=
VTK_MAXIMUM_NUMBER_OF_RADIAL_AXES
;
...
...
@@ -478,17 +478,6 @@ void vtkPolarAxesActor::BuildAxes( vtkViewport *viewport )
return
;
}
for
(
int
i
=
0
;
i
<
3
;
++
i
)
{
if
(
this
->
Pole
[
i
]
==
VTK_DOUBLE_MAX
)
{
// Invalid pole coordinates
vtkWarningMacro
(
<<
"Cannot draw radial axes: "
<<
" invalid pole."
);
return
;
}
}
// i
// Determine the bounds
double
bounds
[
6
];
this
->
GetBounds
(
bounds
);
...
...
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