MIRTK icon indicating copy to clipboard operation
MIRTK copied to clipboard

Add function to parse common point set command options

Open schuhschuh opened this issue 9 years ago • 1 comments

Common options for commands that write point sets to VTK files:

    if (OPTION("-ascii" ) || OPTION("-nobinary")) ascii = true;
    else if (OPTION("-binary") || OPTION("-noascii" )) ascii = false;
    else if (OPTION("-compress"))   compress = true;
    else if (OPTION("-nocompress")) compress = false;

Could be added to mirtkPointSetUtils.h as the boolean ascii and compress flags are passed on to WritePointSet or WritePolyData, respectively.

Corresponding help output code for copy-and-paste later:

  cout << "  -ascii/-binary   Write legacy VTK in ASCII or binary format. (default: binary)" << endl;
  cout << "  -[no]compress    Write XML VTK file with or without compression. (default: compress)" << endl;

schuhschuh avatar Jan 11 '16 17:01 schuhschuh

schuhschuh avatar Jul 15 '17 23:07 schuhschuh