cgal/Surface_mesh/test/Surface_mesh
Sebastien Loriot dfc5fb5065
IO: write_PLY() for Epeck (#7874)
## Summary of Changes

As reported in #7868 the function `CGAL::IO::write_PLY()` used in binary
mode does not correctly write the coordinates if the points are from a
kernel with exact constructions.
~~This PR applies `to_double()" to the coordinates.~~

~~After a discussion with @MaelRL we decided that the user is in charge
to pass a `vertex_point_map` as named parameter that does the
conversion. This is straightforward as we offer the
[`Cartesian_converter_property_map`](https://doc.cgal.org/latest/Property_map/structCGAL_1_1Cartesian__converter__property__map.html).~~

Moving back to the previous proposal: hardcode some to_double and
to_float casts such that we meet the requirements of the file format,
whatever the input.

As the problem is the same for the vertex normals we add a named
parameter `vertex_normal_map`.

### Todo
- [x] Fix the generic function `write_polygon_mesh()`. Currently it is
fixed for `Surface_mesh`

## Release Management

* Affected package(s): Stream_support
* Issue(s) solved (if any): fix #7868 and fix
https://github.com/CGAL/cgal/issues/7327
* License and copyright ownership:  unchanged
* upcoming integration, update #9072 and test it
2025-11-13 09:38:55 +01:00
..
CMakeLists.txt Surface_mesh 2025-08-06 07:51:26 +01:00
SM_common.h Rewrite the tetst 2022-04-20 17:03:58 +02:00
issue_7327.cpp Convert on the fly to double 2025-09-29 13:55:26 +01:00
issue_9086.cpp eof 2025-09-27 08:34:05 +02:00
sm_circulator_concept_checks.cpp clang-tidy on tests 2021-02-18 15:15:12 +01:00
sm_circulator_test.cpp boost::tie -> std::tie 2025-01-24 14:20:00 +01:00
sm_join_test.cpp automatically move data files in data dir + update paths 2021-10-04 09:42:49 +02:00
sm_open_colored_off.cpp replace * and -> use of std::optional by .value() 2024-05-14 14:44:09 +02:00
sm_ply_io.cpp Convert on the fly to double 2025-09-29 13:55:26 +01:00
sm_remove.cpp replace * and -> use of std::optional by .value() 2024-05-14 14:44:09 +02:00
surface_mesh_test.cpp boost::tie -> std::tie 2025-01-24 14:20:00 +01:00
test.3mf add missing test file 2021-01-20 09:53:35 +01:00
test2.off
test3.off More fixes 2020-12-10 12:55:04 +01:00
tetra.ply