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
d2ba4d05
Commit
d2ba4d05
authored
Nov 16, 2011
by
Philippe Pébay
Browse files
Use longest arc with reentrant polar angle
Change-Id: I0ddf6c98a28219d849bad77845611bfc83f4f359
parent
b66bca98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Hybrid/Testing/Cxx/TestPolarAxes.cxx
View file @
d2ba4d05
...
...
@@ -82,7 +82,7 @@ int TestPolarAxes( int argc, char * argv [] )
polaxes
->
SetPole
(
.5
,
1.
,
3.
);
polaxes
->
SetAutoScaleRadius
(
false
);
polaxes
->
SetMaximumRadius
(
3.
);
polaxes
->
SetMaximumAngle
(
18
0.
);
polaxes
->
SetMaximumAngle
(
20
0.
);
polaxes
->
SetNumberOfRadialAxes
(
7
);
polaxes
->
SetCamera
(
renderer
->
GetActiveCamera
()
);
polaxes
->
SetRadialLabelFormat
(
"%6.1f"
);
...
...
Hybrid/vtkPolarAxesActor.cxx
View file @
d2ba4d05
...
...
@@ -770,6 +770,7 @@ void vtkPolarAxesActor::BuildPolarAxisLabelsArcs( double* O,
arc
->
SetPoint1
(
O
[
0
]
+
val
,
O
[
1
],
O
[
2
]
);
arc
->
SetPoint2
(
O
[
0
]
+
x
,
O
[
1
]
+
y
,
O
[
2
]
);
arc
->
SetResolution
(
arcResolution
);
arc
->
SetNegative
(
this
->
MaximumAngle
>
180.
);
arc
->
Update
();
// Append new polar arc to existing ones
...
...
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