Is there an easy way to read points and segments in 2D, from the same file, using CGAL?
What should be the format for this file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In CGAL
operator<<is overloaded for kernel objects and streams. The format is, well, apparently undocumented but kind of obvious for simpler types.Looking at the code a
CGAL::Polygon_2expects input like this:where the first number is the number of Points following and after that the points.