Commit Graph

96996 Commits

Author SHA1 Message Date
Laurent Rineau f0ae53e9d0 Merge pull request #6118 from lrineau/Voronoi_diagram_2-fix_cpp20_warning-GF
Voronoi_diagram_2: fix C++20 warnings [-Wambiguous-reversed-operator]
2021-11-18 12:23:31 +01:00
Laurent Rineau 2e476304ed Fix warnings
> CGAL/Voronoi_diagram_2/Connected_components.h:103:19: warning: ISO C++20 considers use of overloaded operator '!=' (with operand types 'CGAL::VoronoiDiagram_2::Internal::Connected_components<...>::HAVC') to be ambiguous despite there being a unique best viable function with non-reversed arguments [-Wambiguous-reversed-operator]

I changed `operator==` into friend functions.
2021-11-10 09:35:10 +01:00
Laurent Rineau 94afd3a8ad Merge pull request #6085 from lrineau/Stream_support-fix_examples_CMakeLists.txt-GF
Fix a bad merge from PR "Re-organize I/O #4255"
2021-11-04 18:21:26 +01:00
Laurent Rineau 3b6ed999d2 Merge pull request #6071 from sloriot/NP_doc_test
Add a new test for documented named parameters
2021-11-02 10:49:21 +01:00
Sébastien Loriot 120d94a4cf add new test for documented named parameters 2021-11-01 09:39:51 +01:00
Sébastien Loriot 1e942a495e Merge remote-tracking branch 'cgal/5.2.x-branch' into HEAD 2021-10-29 17:39:28 +02:00
Sébastien Loriot 90bc05e715 Merge pull request #6047 from MaelRL/PM-Fix_pmaps_reference_types_5.3-GF
Various fixes for property maps (5.3)
2021-10-29 17:39:22 +02:00
Sébastien Loriot 08d9ce3c8a Merge pull request #6038 from MaelRL/PM-Fix_pmaps_reference_types-GF
Various fixes for property maps (5.2)
2021-10-29 17:30:47 +02:00
Laurent Rineau 6ed0a9b3b6 Merge pull request #6027 from lrineau/Testsuite-fix_warnings_detection-GF
Fix detection of warnings in test results
2021-10-29 16:57:53 +02:00
Laurent Rineau 78d3bd7cc9 Merge pull request #6072 from sloriot/Tetra_remeshing-fix_np
Fix invalid np name
2021-10-29 16:57:37 +02:00
Laurent Rineau 1fbd2a814e Merge branch '5.2.x-branch' into 5.3.x-branch 2021-10-29 16:50:22 +02:00
Laurent Rineau 3212ef6026 Merge pull request #6042 from sloriot/SMS-expensive_macros
Hide expensive assertions behind _expensive_ macros
2021-10-29 16:50:16 +02:00
Laurent Rineau dc2654078a Merge pull request #6048 from sloriot/Argt-null_rad
Avoid creating a circle with 0 radius
2021-10-29 16:50:14 +02:00
Laurent Rineau 0248be6e5e Merge pull request #6049 from danston/Number_types-rename_eigen_test-danston
Renamed Eigen Test in NT
2021-10-29 16:50:11 +02:00
Laurent Rineau 7c185a3e5c Merge pull request #6051 from MaelRL/PMP-Forward_GT_orient_to_bound_volume-GF
PMP: Forward the geometric traits in `orient_to_bound_a_volume()`
2021-10-29 16:50:09 +02:00
Laurent Rineau a4cef17555 Merge pull request #6066 from sloriot/Interpolation-warning
Remove c++17 deprecation warning
2021-10-29 16:50:06 +02:00
Laurent Rineau 8a797935aa Merge pull request #6068 from sloriot/PMP-sampling_doc
Fix NPs and improve doc
2021-10-29 16:50:03 +02:00
Laurent Rineau 3acb0e8873 Merge pull request #6074 from sloriot/SMS-GH_deg_faces
Workaround degenerate faces
2021-10-29 16:50:00 +02:00
Laurent Rineau 88bb3d524f Merge pull request #6076 from danston/Documentation-fix_tuto_reconstruction-danston
Added Missing Call to the Remove Method in the Reconstruction Tutorial
2021-10-29 16:49:57 +02:00
Laurent Rineau 0b5a84b495 Merge pull request #6042 from sloriot/SMS-expensive_macros
Hide expensive assertions behind _expensive_ macros
2021-10-29 16:48:29 +02:00
Laurent Rineau e9c0217a6a Merge pull request #6048 from sloriot/Argt-null_rad
Avoid creating a circle with 0 radius
2021-10-29 16:48:27 +02:00
Laurent Rineau b65497a870 Merge pull request #6049 from danston/Number_types-rename_eigen_test-danston
Renamed Eigen Test in NT
2021-10-29 16:48:25 +02:00
Laurent Rineau d9a6062f87 Merge pull request #6051 from MaelRL/PMP-Forward_GT_orient_to_bound_volume-GF
PMP: Forward the geometric traits in `orient_to_bound_a_volume()`
2021-10-29 16:48:23 +02:00
Laurent Rineau 60fd5bfa67 Merge pull request #6066 from sloriot/Interpolation-warning
Remove c++17 deprecation warning
2021-10-29 16:48:20 +02:00
Laurent Rineau 861204d118 Merge pull request #6068 from sloriot/PMP-sampling_doc
Fix NPs and improve doc
2021-10-29 16:48:18 +02:00
Laurent Rineau 633f59389f Merge pull request #6074 from sloriot/SMS-GH_deg_faces
Workaround degenerate faces
2021-10-29 16:48:16 +02:00
Laurent Rineau eb101fc161 Merge pull request #6076 from danston/Documentation-fix_tuto_reconstruction-danston
Added Missing Call to the Remove Method in the Reconstruction Tutorial
2021-10-29 16:48:14 +02:00
Laurent Rineau 584957eb19 Fix a bad merge from PR "Re-organize I/O #4255"
Before my fix, the CMakeLists.txt could be sum-up that way:

```cmake
find_package(CGAL REQUIRED)
find_package(Boost QUIET)

if(NOT Boost_FOUND)
  message(
    STATUS "This project requires the Boost library, and will not be compiled.")

    create_single_source_cgal_program( "Point_WKT.cpp" )
    # [...]
else ()
  message(STATUS "This project requires the CGAL library, and will not be compiled.")
  return()
endif()
```

So, on *all platform*, as Boost is mandatory and always found, the
behavior was to display "This project requires the CGAL library, and
will not be compiled." and return, without configuring any target.

I have simplified the `CMakeLists.txt` to the simplest:

```cmake
cmake_minimum_required(VERSION 3.1...3.20)
project(Stream_support_Examples)

find_package(CGAL REQUIRED)

create_single_source_cgal_program( "Point_WKT.cpp" )
```

- `cmake_minimum_required` is mandatory and must be the first line,
- `project` is mandatory,
- `find_package(CGAL REQUIRED)`: no need to test `CGAL_FOUND`, because
  CGAL is required anyway. No need to search for Boost, because that is
  an implementation detail of CGAL, and the CMake file
  `CGALConfig.cmake` deals with that dependency
- and then the declaration of the targets.
2021-10-27 12:03:36 +02:00
Sébastien Loriot b239c0efe7 fix np in example 2021-10-25 11:50:30 +02:00
Sébastien Loriot 726e1d4b25 fix np in test 2021-10-25 11:47:52 +02:00
Dmitry Anisimov 9fc7d9670e added missing call to the remove method 2021-10-21 17:33:29 +02:00
Sébastien Loriot 72b8f75f48 workaround degenerate faces 2021-10-21 11:21:04 +02:00
Sébastien Loriot 49608861ea fix invalid np name 2021-10-20 15:35:50 +02:00
Sébastien Loriot b793e7cd90 fix NPs and improve doc 2021-10-19 17:38:12 +02:00
Sébastien Loriot 6f5c0edd5a remove c++17 deprecation warning 2021-10-19 15:11:04 +02:00
Mael Rouxel-Labbé 1ab6b44d7d Fix NP forwarding in volume_CC 2021-10-15 10:22:08 +02:00
Laurent Rineau 7c637849f8 Fix buggy logic in parse-ctest-dashboard-xml.py 2021-10-14 13:25:26 +02:00
Mael Rouxel-Labbé 1f73af6cc4 Drive-by cleaning 2021-10-14 11:09:04 +02:00
Mael Rouxel-Labbé 91e7f1d20c Forward the geom traits in orient_to_bound_a_volume 2021-10-14 11:06:04 +02:00
Dmitry Anisimov d9bd316750 renamed eigen test 2021-10-13 16:00:06 +02:00
Laurent Rineau 025ef82493 Fix indentation 2021-10-12 15:59:16 +02:00
Sébastien Loriot fb46a94682 avoid creating a circle with 0 radius 2021-10-12 10:15:01 +02:00
Mael Rouxel-Labbé 131242bb80 Merge branch 'PM-Fix_pmaps_reference_types-GF' into PM-Fix_pmaps_reference_types_5.3-GF 2021-10-12 09:29:23 +02:00
Mael Rouxel-Labbé 07948c7066 Constify the 'operator[]' of non-mutable lvalue pmaps with 'put()'s 2021-10-11 12:02:22 +02:00
Sébastien Loriot 75e6e4500f hide expensive assertions behind _expensive_ macros 2021-10-11 11:57:24 +02:00
Mael Rouxel-Labbé 480c14564a Don't base reference detection on lvalue_property_map_tag 2021-10-08 15:42:01 +02:00
Mael Rouxel-Labbé 2331eb7cf4 Fix comment 2021-10-08 15:41:54 +02:00
Mael Rouxel-Labbé 590ddf8015 Various fixes for pmaps:
- Use `value_type` when the returned type is not a reference
- Enforce `reference = value_type` if the returned type is not
  a reference (to avoid `typename PM::reference r = get(m, k)`,
  which will take a ref to a temporary if the `reference`
  typedef is an actualy reference)
- Do not use `put_get_helper` if the property map is not a `lvalue`
  **mutable** property map: the `put()` is `map[k] = v`, which
  is broken if `operator[]` does not return a reference
- The concept `boost::lvalue_property_map_tag` requires `operator[](key)`,
  not a reference in `get(map, key)`. You can have a readable property map
  returning a reference through its `get(map, key)`, but if there is
  no `operator[]`, it's just a `boost::readable_property_map_tag`
- Some const correctness to avoid copying maps with state
  or heavy keys in `get(map, key)` / `put(map, key, value)`
- Base the category of a wrapping pmap on what it offers instead
  of just forwarding the base property map's category
- Tried to do something like mutable lvalue pmap:
  * `value_type& operator[](key&)`
  * `ref get(map, const key&)`
  * `put(map, const key&, const value_type&)`
  and non-mutable lvalue pmap:
  * `const value_type& operator[](const key&)`
  * `ref get(map, const key&)`
  but not everything fits properly...
2021-10-08 15:38:47 +02:00
Mael Rouxel-Labbé 1660611e76 Use local typenames directly 2021-10-08 13:23:38 +02:00
Mael Rouxel-Labbé df560987a6 Whitespace & cleaning changes 2021-10-08 12:13:43 +02:00