int
main(int, char *[])
{
p0[0] = -1.0;
p0[1] = -1.0;
p0[2] = 0.0;
p1[0] = 1.0;
p1[1] = -1.0;
p1[2] = 0.0;
p2[0] = 1.0;
p2[1] = 1.0;
p2[2] = 0.0;
pointsSet->SetPoint(0, p0);
pointsSet->SetPoint(1, p1);
pointsSet->SetPoint(2, p2);
const unsigned int numberOfPoints = pointsSet->GetNumberOfPoints();
std::cout << numberOfPoints << std::endl;
bool pointExists = pointsSet->GetPoint(1, &
pp);
if (pointExists)
{
std::cout <<
"Point is = " <<
pp << std::endl;
}
return EXIT_SUCCESS;
}