// Copyright (c) 2010 David W. Shattuck, PhD // $Id: dfsexample.cpp 155 2010-08-24 22:15:30Z shattuck $ /** \brief Example for use of the BrainSuite Surface Format file reader classes \author David Shattuck \date $Date: 2010-08-24 15:15:30 -0700 (Tue, 24 Aug 2010) $ This example program takes one or two arguments. The first specifies an input filename. If only one argument is specified, then the program will read the input file and print out the first five elements of each vector present. If two arguments are provided, the program will read the input file and write it out to the location specified by the output file. */ #include "dfsurface.h" //output function for UV coordinate class inline std::ostream &operator<<(std::ostream &os, SILT::PointUV &t) { return os< { }\n"<limit) ? limit : surface.vertices.size(); const size_t nt = (surface.triangles.size()>limit) ? limit : surface.triangles.size(); std::cout<<"triangles\n"; for (size_t i=0;i