int
main(int argc, char * argv[])
{
if ((argc != 2) && (argc != 4))
{
std::cerr << "Usage: " << std::endl;
std::cerr << argv[0];
std::cerr << " <InputFileName> <id 1 (optional)> <id 2 (optional)>";
std::cerr << std::endl;
return EXIT_FAILURE;
}
using CoordinateType = double;
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName(argv[1]);
reader->Update();
MeshType::Pointer mesh = reader->GetOutput();
if (argc == 4)
{
MeshType::PointIdentifier id1 = std::stoi(argv[2]);
MeshType::PointIdentifier id2 = std::stoi(argv[3]);
}
return EXIT_SUCCESS;
}