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
eee3b29a
Commit
eee3b29a
authored
Nov 29, 2011
by
Jeff Baumes
Browse files
COMP: Removing conversion warnings
Change-Id: I90a14c120a2252698e2c9f740ba27e3606853fff
parent
2512ea6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Infovis/Testing/Cxx/TestConvexHull2D.cxx
View file @
eee3b29a
...
...
@@ -50,7 +50,7 @@ int TestConvexHull2D(int argc, char* argv[])
inPoints
->
SetNumberOfPoints
(
1
);
inPoints
->
SetPoint
(
0
,
0.0
,
0.0
,
0.0
);
vtkConvexHull2D
::
CalculateConvexHull
(
inPoints
,
outPoints
,
2.0
);
if
(
!
outPoints
->
GetNumberOfPoints
()
=
=
4
)
if
(
outPoints
->
GetNumberOfPoints
()
!
=
4
)
{
std
::
cerr
<<
"Error: Single point - expected 4 output points but got "
<<
outPoints
->
GetNumberOfPoints
()
<<
"."
<<
std
::
endl
;
...
...
@@ -95,7 +95,7 @@ int TestConvexHull2D(int argc, char* argv[])
inPoints
->
SetPoint
(
0
,
-
2.0
,
0.0
,
0.0
);
inPoints
->
SetPoint
(
1
,
2.0
,
0.0
,
0.0
);
vtkConvexHull2D
::
CalculateConvexHull
(
inPoints
,
outPoints
,
2.0
);
if
(
!
outPoints
->
GetNumberOfPoints
()
=
=
4
)
if
(
outPoints
->
GetNumberOfPoints
()
!
=
4
)
{
std
::
cerr
<<
"Error: Two points in a line - expected 4 output points but got "
<<
outPoints
->
GetNumberOfPoints
()
<<
"."
<<
std
::
endl
;
...
...
@@ -143,7 +143,7 @@ int TestConvexHull2D(int argc, char* argv[])
inPoints
->
SetPoint
(
3
,
2.0
,
1.9
,
0.0
);
inPoints
->
SetPoint
(
4
,
2.0
,
2.0
,
0.0
);
vtkConvexHull2D
::
CalculateConvexHull
(
inPoints
,
outPoints
,
2.0
);
if
(
!
outPoints
->
GetNumberOfPoints
()
=
=
4
)
if
(
outPoints
->
GetNumberOfPoints
()
!
=
4
)
{
std
::
cerr
<<
"Error: Five points - expected 4 output points but got "
<<
outPoints
->
GetNumberOfPoints
()
<<
"."
<<
std
::
endl
;
...
...
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