Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

planes_point_set_3.ply in wrong format #7996

Closed
adokhugi opened this issue Jan 23, 2024 · 1 comment · Fixed by #8004
Closed

planes_point_set_3.ply in wrong format #7996

adokhugi opened this issue Jan 23, 2024 · 1 comment · Fixed by #8004
Assignees
Milestone

Comments

@adokhugi
Copy link

Issue Details

region_growing_planes_on_point_set_3 creates a file named planes_point_set_3.ply. In this file the colors are stored in a wrong format. If you open the file in MeshLab you will get an error message.

Source Code

region_growing_planes_on_point_set_3.cpp

Environment

  • Operating system (Windows/Mac/Linux, 32/64 bits): Windows 64 bit
  • Compiler: MS Visual C++ 2022
  • Release or debug mode: both
  • Specific flags used (if any): -
  • CGAL version: 5.6
  • Boost version: the latest
  • Other libraries versions if used (Eigen, TBB, etc.): the latest
@afabri
Copy link
Member

afabri commented Jan 26, 2024

Thank you for pointing this out. Note that it works for the binary mode.

std::ofstream out("points.ply", std::ios::binary);
CGAL::IO::set_binary_mode(out);
out << output_range;
out.close();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants