// Gnurbs - A curve and surface library
// Copyright (C) 2008-2026 Eric Bechet
//
// See the LICENSE file for contributions and license information.
// Please report all bugs and problems to <bechet@cadxfem.org>.
//

#include <iostream>
#include "nutil.h"
#include "point_set.h"

int main(int argc, char **argv )
{
  PointSet pts(10000);
  if (argc==3)
  {
    pts.read_gz(argv[1]);
    pts.write_bin(argv[2]);
    return 0;
  }
  else
  if (argc==4)
  {
    pts.read_gz(argv[2],true);
    pts.write_bin(argv[3]);
    return 0;
  }
  else
  {
    std::cerr << " usage : convert_arbre [co] input.txt.gz output.bin" << std::endl;
    return 1;
  }
}
