Commit Graph
670 Commits
Author SHA1 Message Date
Laurent Rineau dafcd62608 fix included headers 2026-01-21 10:42:41 +01:00
Sébastien Loriot b9916cbb58 Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2026-01-09 15:53:29 +01:00
Sébastien Loriot 08b27d3db1 Merge remote-tracking branch 'cgal/6.0.x-branch' into 'cgal/6.1.x-branch' 2026-01-09 15:51:04 +01:00
albert-github c834c61cdc Incorrect preprocessor directive
The preprocessor directive is misspelled and will normally not be used, corrected.
2026-01-06 17:18:13 +01:00
Laurent Rineau 70522b3b6e Fix doubled word typos in various header and documentation files (#9220)
## Summary of Changes

Fixed common doubled word typos (e.g., "to to", "of of") in comments and
documentation strings across various packages. These changes are purely
cosmetic and do not affect code logic.

## Release Management

Affected package(s): Algebraic_foundations, Algebraic_kernel_d,
Arrangement_on_surface_2, BGL, Bounding_volumes, Convex_hull_2,
Kernel_23, Minkowski_sum_2, Nef_3, Orthtree, Polygon_mesh_processing,
Polyhedron, Polytope_distance_d, Spatial_searching, Stream_support,
TDS_3.

Issue(s) solved (if any):

Feature/Small Feature (if any):

Link to compiled documentation:

License and copyright ownership: I agree to the transfer of the license
and copyright of my contribution to the CGAL project.
2026-01-06 11:33:27 +01:00
SOUHARDYA TOLA f103593626 Fix doubled word typos in documentation and comments 2025-12-31 15:40:29 +00:00
Sébastien Loriot 6c61eab9b3 Merge remote-tracking branch 'cgal/main' into 'afabri/Stream_support-test_VTK-GF' 2025-12-29 17:13:36 +01:00
Sebastien Loriot 62a006b736 Fix writing 64 bits integer into PLY files (#9175)
## 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
(https://github.com/CGAL/cgal/commit/aa9f5215c4afa79d29cc5491d1d690cd2ed7a142).
Hence, we were writing 8 bytes values (while announcing 4 bytes values)
and writing a property map with value type a 64 bits integers (or a
range of 64 bits integers) would make the file unreadable.

The PR re-introduces the conversions, and also removes the recursion of
the function.

The bug is from CGAL 5.5, but we have recent changes to PLY I/O
introducing named parameters and whatnot that make it a little tedious
to backport so I will wait to see if there is a need.

## Release Management

* Affected package(s): `Surface_mesh`
* Issue(s) solved (if any): -
* Feature/Small Feature (if any): -
* License and copyright ownership: no change
2025-12-26 12:10:15 +01:00
Sébastien Loriot 69d6cdd151 Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2025-12-19 17:37:15 +01:00
Laurent Rineau 332cc960e9 add missing inline keywords in 6.1.x-branch 2025-12-18 16:19:26 +01:00
Mael Rouxel-Labbé 6edac17fd3 Fix a warning
/mnt/testsuite/include/CGAL/IO/PLY/PLY_writer.h:296:30: warning:
loop variable 'v' of type 'const unsigned int&' binds to a temporary
constructed from type 'const long unsigned int' [-Wrange-loop-construct]
  296 |       for(const ElementType& v : vec)

This is because ElementType is not the value type of the vector,
but the data type that we write, and for 64 bits integer,
we convert to 32 bits. So in that case, we can't cast yet.
2025-12-17 12:33:40 +01:00
Andreas Fabri a2e8b67fa4 fix macro name 2025-12-15 10:55:53 +00:00
Andreas Fabri 1bb2a2b20f Stream_support: const& for write_WKT() 2025-12-10 12:09:21 +00:00
albert-github 323a7cd09d Spelling correction
Spelling correction
2025-12-03 12:20:10 +01:00
Andreas Fabri 92a896abb9 Fix anchor 2025-11-25 16:39:10 +00:00
Andreas Fabri 1b3556184a Fix warning in read_las_points.h 2025-11-25 07:35:10 +00:00
Andreas Fabri 884e9fc4ee Document a @param 2025-11-20 14:02:31 +00:00
Andreas Fabri cee9effe09 Document a @param 2025-11-20 13:56:43 +00:00
Andreas Fabri 970f16913b Merge remote-tracking branch 'cgal/main' into Point_set-reduce_dependencies-GF 2025-11-20 10:14:49 +00:00
Andreas Fabri 1dc39039e9 merge cgal/main 2025-11-13 08:48:43 +00:00
Sebastien Loriot 1673cd0f9e Fix OBJ loader crashing the demo on reading failure (#9128)
## Release Management

* Affected package(s): `Lab`
* Issue(s) solved (if any): a few entries in #6690 
* Feature/Small Feature (if any): n/a
* License and copyright ownership: no change
2025-11-13 09:40:07 +01:00
Mael Rouxel-Labbé 333a15584f Handle (invalid) zero vertex index in face 2025-11-07 22:02:20 +01:00
Andreas Fabri 6bd5ec4f8b Move guards in low level file 2025-10-31 13:08:07 +01:00
Andreas Fabri eaa25c500b fix CI 2025-10-31 12:39:55 +01:00
Andreas Fabri 64e33bd6cb fix links 2025-10-31 12:25:24 +01:00
Andreas Fabri f28e643ed0 move read_points.h 2025-10-31 10:54:27 +01:00
Andreas Fabri 2d39ab4dd8 cleanup 2025-10-31 09:40:05 +01:00
Andreas Fabri 2fb9a2d832 doc links 2025-10-30 22:44:47 +01:00
Andreas Fabri 7c3b2302b5 doc links 2025-10-30 22:28:15 +01:00
Andreas Fabri 44306e981a doc 2025-10-30 18:11:15 +01:00
Andreas Fabri 25060734a0 forward declarations must come first 2025-10-30 17:46:45 +01:00
Andreas Fabri e70e2109f4 XYZ 2025-10-30 15:05:58 +01:00
Andreas Fabri fb748f6442 Move LAS 2025-10-30 14:51:26 +01:00
Andreas Fabri 5050b54bfe robustify normal computation for STL 2025-10-30 12:03:22 +01:00
Andreas Fabri 1d69532fb9 Make std::array possible for VTP 2025-10-29 12:35:34 +01:00
Andreas Fabri 194e30d9a9 Use CGAL::internal::reserve() 2025-10-29 11:48:09 +01:00
Andreas Fabri 54be65e727 Add testcase for read_VTK. Does not yet for std::list<Face>. And writing seems to be always binary 2025-10-29 11:20:32 +01:00
Andreas Fabri f766834601 Use CGAL_NP_TEMPLATE_PARAMETERS_NO_DEFAULT 2025-10-25 11:00:50 +01:00
Andreas Fabri 5e26465b2c fix 2025-10-25 10:28:36 +01:00
Andreas Fabri 67220b911b fix 2025-10-25 10:17:18 +01:00
Andreas Fabri 37b6a7214d R/W for points in OFF format is now in CGAL/IO/OFF.h 2025-10-25 09:58:21 +01:00
Andreas Fabri 592b8824ec Add forwarding include files 2025-10-24 15:49:55 +01:00
Andreas Fabri 6d011a62ae Point_set: move IO code to Stream_support 2025-10-23 08:52:04 +01:00
Andreas Fabri 8623f28bb0 Use internal::construct_normal_of_STL_face() 2025-10-22 10:32:00 +01:00
Andreas FabriandMael 4c27d08372 Apply suggestions from code review
Co-authored-by: Mael <mael.rouxel.labbe@geometryfactory.com>
2025-10-22 11:17:31 +02:00
Andreas Fabri 5d82eed3ea Update Stream_support/include/CGAL/IO/STL.h 2025-10-21 17:26:45 +02:00
Andreas FabriandMael 3706528a0c Update Stream_support/include/CGAL/IO/PLY/PLY_writer.h
Co-authored-by: Mael <mael.rouxel.labbe@geometryfactory.com>
2025-10-17 11:20:06 +02:00
Andreas Fabri 62a9c9e04f cleanup 2025-10-15 16:23:59 +01:00
Sébastien Loriot 67349ccbe1 include for boost range 2025-10-15 16:49:15 +02:00
Andreas Fabri 358a588eae Deal with binary VTP for non-double kernel 2025-10-14 14:21:39 +01:00