Commit eee3b29a authored by Jeff Baumes's avatar Jeff Baumes
Browse files

COMP: Removing conversion warnings

Change-Id: I90a14c120a2252698e2c9f740ba27e3606853fff
parent 2512ea6c
...@@ -50,7 +50,7 @@ int TestConvexHull2D(int argc, char* argv[]) ...@@ -50,7 +50,7 @@ int TestConvexHull2D(int argc, char* argv[])
inPoints->SetNumberOfPoints(1); inPoints->SetNumberOfPoints(1);
inPoints->SetPoint(0, 0.0, 0.0, 0.0); inPoints->SetPoint(0, 0.0, 0.0, 0.0);
vtkConvexHull2D::CalculateConvexHull(inPoints, outPoints, 2.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 " << std::cerr << "Error: Single point - expected 4 output points but got " <<
outPoints->GetNumberOfPoints() << "." << std::endl; outPoints->GetNumberOfPoints() << "." << std::endl;
...@@ -95,7 +95,7 @@ int TestConvexHull2D(int argc, char* argv[]) ...@@ -95,7 +95,7 @@ int TestConvexHull2D(int argc, char* argv[])
inPoints->SetPoint(0, -2.0, 0.0, 0.0); inPoints->SetPoint(0, -2.0, 0.0, 0.0);
inPoints->SetPoint(1, 2.0, 0.0, 0.0); inPoints->SetPoint(1, 2.0, 0.0, 0.0);
vtkConvexHull2D::CalculateConvexHull(inPoints, outPoints, 2.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 " << std::cerr << "Error: Two points in a line - expected 4 output points but got " <<
outPoints->GetNumberOfPoints() << "." << std::endl; outPoints->GetNumberOfPoints() << "." << std::endl;
...@@ -143,7 +143,7 @@ int TestConvexHull2D(int argc, char* argv[]) ...@@ -143,7 +143,7 @@ int TestConvexHull2D(int argc, char* argv[])
inPoints->SetPoint(3, 2.0, 1.9, 0.0); inPoints->SetPoint(3, 2.0, 1.9, 0.0);
inPoints->SetPoint(4, 2.0, 2.0, 0.0); inPoints->SetPoint(4, 2.0, 2.0, 0.0);
vtkConvexHull2D::CalculateConvexHull(inPoints, outPoints, 2.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 " << std::cerr << "Error: Five points - expected 4 output points but got " <<
outPoints->GetNumberOfPoints() << "." << std::endl; outPoints->GetNumberOfPoints() << "." << std::endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment