mirror of https://github.com/CGAL/cgal
The LAS format, even binary, is not an exact representation. The coordinates are encoded using and offset and a scaling, for each coordinate. In `write_LAS_with_properties()`, Simon has hard-coded: ``` LASheader header; header.x_scale_factor = 1e-9 * (bbox.xmax() - bbox.xmin()); header.y_scale_factor = 1e-9 * (bbox.ymax() - bbox.ymin()); header.z_scale_factor = 1e-9 * (bbox.zmax() - bbox.zmin()); header.x_offset = bbox.xmin(); header.y_offset = bbox.ymin(); header.z_offset = bbox.zmin(); ``` So, the approximate comparison of coordinates, for the I/O test, should compare using about the same precision. |
||
|---|---|---|
| .. | ||
| data | ||
| CMakeLists.txt | ||
| analysis_test.cmd | ||
| analysis_test.cpp | ||
| bilateral_smoothing_test.cmd | ||
| bilateral_smoothing_test.cpp | ||
| edge_aware_upsample_test.cmd | ||
| edge_aware_upsample_test.cpp | ||
| hierarchy_simplification_test.cpp | ||
| jet_pointer_as_property_map.cpp | ||
| normal_estimation_test.cmd | ||
| normal_estimation_test.cpp | ||
| psp_jet_includes.cpp | ||
| read_test.cpp | ||
| read_test_with_different_pmaps.cpp | ||
| remove_outliers_test.cmd | ||
| remove_outliers_test.cpp | ||
| smoothing_test.cmd | ||
| smoothing_test.cpp | ||
| structuring_test.cpp | ||
| test_deprecated_io_point_set.cpp | ||
| test_read_write_point_set.cpp | ||
| vcm_all_test.cpp | ||
| vcm_plane_test.cpp | ||
| wlop_simplify_and_regularize_test.cmd | ||
| wlop_simplify_and_regularize_test.cpp | ||