void print(cg::visualization::printer_type & p) const { p.corner_stream() << "double-click to clear." << cg::visualization::endl << "press mouse rbutton for add vertex (click to first point to complete contour)" << cg::visualization::endl << "move vertex with rbutton" << cg::visualization::endl << "eps:" << eps << cg::visualization::endl; for (size_t i = 0; i < points_.size(); ++i) { p.global_stream((point_2f)points_[i] + vector_2f(5, 0)) << i; } }
void print(cg::visualization::printer_type & p) const { p.corner_stream() << "double-click to clear." << cg::visualization::endl << "press mouse rbutton for add vertex (click to first point to complete contour)" << cg::visualization::endl << "move vertex with rbutton" << cg::visualization::endl << "yellow contour -- not ccw or convex" << cg::visualization::endl << "green contour -- contains cursor" << cg::visualization::endl << "red contour -- don't contains cursor" << cg::visualization::endl; for (size_t i = 0; i < points_.size(); ++i) { p.global_stream((point_2f)points_[i] + vector_2f(5, 0)) << i; } }