Sven Oesau
9ca2a4e631
replace * and -> use of std::optional by .value()
2024-05-14 14:44:09 +02:00
Sven Oesau
9cd6762198
adapting examples
2024-05-13 17:25:33 +02:00
Sven Oesau
a873482da8
switching Surface_mesh::property_map to std::optional
2024-05-13 16:03:14 +02:00
Laurent Rineau
c4165fe5f9
Merge pull request #7439 from MaelRL/PMP-Remove_degen_faces-no-clear-GF
...
Introduce remove_all_elements(Graph)
2024-04-22 14:54:18 +02:00
Andreas Fabri
caa8aaaa21
merge master
2024-04-03 14:09:39 +01:00
Sébastien Loriot
12c80ac512
Merge remote-tracking branch 'cgal/master' into HEAD
2024-03-25 10:21:41 +01:00
Sébastien Loriot
c99b69a0e7
add missing license headers
2024-01-04 13:50:15 +01:00
Sébastien Loriot
e7c26349f2
move header in a package to GPL
2024-01-04 13:36:34 +01:00
Sébastien Loriot
a54e024a32
start adding dynamic property maps with default
...
WIP: need updates in all models of face graph
2023-09-13 17:59:52 +02:00
Mael Rouxel-Labbé
7f85651e82
Merge remote-tracking branch 'cgal/master' into PMP-Remove_degen_faces-no-clear-GF
2023-07-19 13:55:35 +02:00
Mael Rouxel-Labbé
146f9ecb21
Add specializations for Surface_mesh and Polyhedron_3
2023-07-19 13:48:34 +02:00
Sébastien Loriot
a04035879d
boost::is_const -> std::is_const
2023-04-23 22:37:07 +02:00
Sébastien Loriot
fc034c6a5d
boost::unit -> std::uint
2023-04-23 18:40:39 +02:00
Mael Rouxel-Labbé
b597aa8aab
Add is_valid_*_descriptor() overloads for Surface_mesh
2022-10-04 22:19:35 +02:00
Andreas Fabri
fd20beeef7
Use vertices_around_target()
2022-05-03 15:09:05 +01:00
Andreas Fabri
abb54bf0b8
BGL: Add adjacency_iterator for several classes
2022-05-03 14:02:21 +01:00
Sébastien Loriot
6d3176e061
move Named_parameters class in STL_extension
...
helpers stay in BGL because it depends on BGL tags
2022-01-07 15:12:22 +01: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é
df560987a6
Whitespace & cleaning changes
2021-10-08 12:13:43 +02:00
Mael Rouxel-Labbé
863ab7541c
Various whitespace fixes
2021-10-05 12:14:03 +02:00
Sébastien Loriot
fbd9628307
add a static bool map and use it when possible
...
also remove Static_property_map that is a duplicate of Constant_property_map
2020-05-15 18:27:33 +02:00
Sébastien Loriot
0779373835
extra run of the script to remove tabs and trailing whitespaces
...
right after the merge of 4.14 release branch
+ manual fix on one line in:
* Arrangement_on_surface_2/include/CGAL/IO/Arr_text_formatter.h
* .travis/generate_travis.sh
2020-03-26 14:16:06 +01:00
Sébastien Loriot
52164b1fba
First pass on removing license notice in header for LGPL files
2019-10-19 15:40:30 +02:00
Sébastien Loriot
7356421d80
introduce Commercial license SPDX tag
2019-10-19 12:15:19 +02:00
Sébastien Loriot
9bd9c68b83
update LGPL[23]+ and GPL[23]+ SPDX tags
...
ack -l --no-svg "SPDX-License-Identifier: GPL-3.0\+" | xargs sed -i "s/SPDX-License-Identifier: GPL-3.0+/SPDX-License-Identifier: GPL-3.0-or-later/"
ack -l --no-svg "SPDX-License-Identifier: LGPL-3.0\+" | xargs sed -i "s/SPDX-License-Identifier: LGPL-3.0+/SPDX-License-Identifier: LGPL-3.0-or-later/"
ack -l --no-svg "SPDX-License-Identifier: GPL-2.0\+" | xargs sed -i "s/SPDX-License-Identifier: GPL-2.0+/SPDX-License-Identifier: GPL-2.0-or-later/"
ack -l --no-svg "SPDX-License-Identifier: LGPL-2.0\+" | xargs sed -i "s/SPDX-License-Identifier: LGPL-2.0+/SPDX-License-Identifier: LGPL-2.0-or-later/"
2019-10-18 21:57:54 +02:00
Sébastien Loriot
2f81a21523
Merge 'CGAL-named_function_parameters' for 4.13-branch into 4.14-branch
...
Conflicts resolved by hand
2019-07-28 22:30:13 +02:00
Sébastien Loriot
560c77f567
rename named function parameter class
2019-07-15 06:25:02 +02:00
Laurent Rineau
90782d4b7f
Revert the merge of two pull-requests that target CGAL-4.14-branch
...
- Revert "Merge pull request #3857 from MaelRL/CGAL-Fix_duplicate_non_manifold_vertices-GF"
- Revert "Merge pull request #3898 from lrineau/Mesh_3-stop_during_protection-lrineau"
2019-05-14 17:50:45 +02:00
Maxime Gimeno
d76c163807
Fix the Final Fixes
2019-02-11 09:39:26 +01:00
Sébastien Loriot
d5abc63e80
give a default value
2019-02-08 10:34:22 +01:00
Sébastien Loriot
56de16c9c0
workaround (a compiler bug?)
2018-12-07 10:44:25 +01:00
Sébastien Loriot
915c3e7fec
use a vector for dynamic properties of const Surface_mesh
...
also done for OpenMesh types
2018-10-25 17:05:21 +02:00
Sébastien Loriot
72acbee3f5
fix warnings
2018-10-24 11:12:55 +02:00
Sébastien Loriot
82ef11845f
fix constness issues
2018-07-18 14:31:14 +02:00
Sébastien Loriot
a31753df4a
handle const graph for face dynamic tag
2018-07-18 09:12:05 +02:00
Sébastien Loriot
73e3e86980
make the test compiles.
...
@afabri This shows what I meant in https://github.com/CGAL/cgal/issues/3138
Here the fix is only minimal, but it should be done consistently for all
simplex type of Surface_mesh, and also probably for OpenMesh types
2018-07-06 09:13:02 +02:00
Maxime Gimeno
132cf694a0
remove is_valid() from the graph_traits
2018-05-03 12:03:14 +02:00
Laurent Rineau
c504ea3e9f
Fixes
...
- cleanup
- be careful not to add things to the documentation
2018-03-22 17:23:28 +01:00
Andreas Fabri
8c41669fb7
move properties from Mesh_3 to BGL, Polyhedron_3 and Surface_mesh
2018-03-22 16:37:37 +01:00
Laurent Rineau
9d227d0fba
Merge pull request #2758 from maxGimeno/BGL-Document_graph_has_property-GF
...
BGL: Document graph_has_property
2018-02-19 14:26:33 +01:00
Simon Giraudot
6269309d86
Use CGAL include for boost counting/transform iterators everywhere
2018-01-23 11:09:52 +01:00
Maxime Gimeno
c3215b9331
Move graph_has_property from namespace boost to namespace CGAL and provide some doc for it.
2018-01-22 12:43:29 +01:00
Sébastien Loriot
456222aa81
add comment
2017-12-19 14:51:12 +01:00
Sébastien Loriot
a9a85b37e6
fix compilation issues and warnings
2017-12-19 14:43:30 +01:00
Andreas Fabri
ee8c0fad5d
Changes after @sloriot's review
2017-12-14 10:49:02 +00:00
Laurent Rineau
7df26c594b
Merge branch 'master' into BGL-generic_property_map-GF
2017-12-14 09:46:01 +01:00
Andreas Fabri
91539a1ae1
Merge branch 'master' into BGL-fix_doc-GF
2017-12-01 12:04:15 +01:00
Andreas Fabri
2806377564
Fix Issue #2629
2017-11-30 18:17:26 +00:00
Andreas Fabri
1f8849dfea
Make dynamic property API similar to the non dynamic case
2017-11-29 08:28:16 +00:00
Jane Tournois
2feb79a16b
Add example for dynamic_property_map
2017-11-27 16:35:30 +00:00