#include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/draw_surface_mesh.h>
#include <fstream>
int main(int argc, char* argv[])
{
Mesh sm;
{
std::cerr << "Invalid input file." << std::endl;
return EXIT_FAILURE;
}
auto vcm = sm.add_property_map<Mesh::Vertex_index,
CGAL::IO::Color>(
"v:color").first;
auto ecm = sm.add_property_map<Mesh::Edge_index,
CGAL::IO::Color>(
"e:color").first;
auto fcm = sm.add_property_map<Mesh::Face_index>("f:color", CGAL::IO::white() ).first;
for(auto v : vertices(sm))
{
if(v.idx()%2)
put(vcm, v, CGAL::IO::black());
else
put(vcm, v, CGAL::IO::blue());
}
for(auto e : edges(sm))
put(ecm, e, CGAL::IO::gray());
CGAL_USE(fcm);
return EXIT_SUCCESS;
}