int main(int, char *[])
{
using PointsContainer = PointSetType::PointsContainer;
PointsContainer::Pointer points = PointsContainer::New();
p0[0] = -1.0; p0[1] = 0.0; p0[2] = 0.0;
p1[0] = 1.0; p1[1] = 0.0; p1[2] = 0.0;
unsigned int pointId = 0;
points->InsertElement( pointId++ , p0 );
points->InsertElement( pointId++ , p1 );
PointSetType::Pointer pointSet = PointSetType::New();
pointSet->SetPoints( points );
PointsContainer::Pointer points2 = pointSet->GetPoints();
using PointsIterator = PointsContainer::Iterator;
PointsIterator pointIterator = points->Begin();
PointsIterator end = points->End();
while( pointIterator != end )
{
std::cout << p << std::endl;
++pointIterator;
}
std::cout << pointSet->GetNumberOfPoints() << std::endl;
std::cout << pointSet->GetPoints()->
Size() << std::endl;
return EXIT_SUCCESS;
}