mirror of https://github.com/CGAL/cgal
## Summary of Changes
The PLY file format does not support 64 bits (signed/unsigned) integers.
In the overload of the writer specific to `Surface_mesh`, we try to
write all property maps with value types compatible with the PLY file
format (char, uchar, etc.).
We also tolerate 64 bits signed / unsigned integers, but used to cast it
to int32 / uint32:
```cpp
{
Int64_map pmap;
boost::tie(pmap, okay) = sm.template property_map<Simplex,boost::int64_t>(prop[i]);
if(okay)
{
os << "property int " << name << std::endl;
printers.push_back(new internal::Simple_property_printer<Simplex,Int64_map,boost::int32_t>(pmap));
continue;
}
}
```
In https://github.com/CGAL/cgal/pull/6575, the code was factorized, but
the conversion to 32 bits was accidentally lost
(
|
||
|---|---|---|
| .. | ||
| 3MF | ||
| LAS | ||
| OBJ | ||
| OFF | ||
| OI | ||
| PLY | ||
| STL | ||
| VRML | ||
| VTK | ||
| WKT | ||
| XYZ | ||
| 3MF.h | ||
| Color.h | ||
| GOCAD.h | ||
| Generic_writer.h | ||
| Istream_iterator.h | ||
| LAS.h | ||
| OBJ.h | ||
| OFF.h | ||
| OI.h | ||
| Ostream_iterator.h | ||
| PLY.h | ||
| STL.h | ||
| VRML.h | ||
| VTK.h | ||
| Verbose_ostream.h | ||
| WKT.h | ||
| XYZ.h | ||
| binary_file_io.h | ||
| helpers.h | ||
| io.h | ||
| io_tags.h | ||
| polygon_soup_io.h | ||
| read_las_points.h | ||
| read_off_points.h | ||
| read_ply_points.h | ||
| read_points.h | ||
| read_xyz_points.h | ||
| trace.h | ||
| write_las_points.h | ||
| write_off_points.h | ||
| write_ply_points.h | ||
| write_points.h | ||
| write_xyz_points.h | ||