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
f851c0b1
Commit
f851c0b1
authored
Nov 29, 2011
by
Jeff Baumes
Committed by
Kitware Robot
Nov 29, 2011
Browse files
Merge topic 'tulip-reader-enhancements'
eee3b29a
COMP: Removing conversion warnings
parents
bdf25f82
eee3b29a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Infovis/Testing/Cxx/TestConvexHull2D.cxx
View file @
f851c0b1
...
...
@@ -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