Commit Graph

23 Commits

Author SHA1 Message Date
Sébastien Loriot 8700394122 boost::mpl::if_ -> std::conditional 2023-09-24 22:57:20 +02:00
Mael Rouxel-Labbé ec8ec2f97a Merge branch 'Weights-v2.0-GF-5.5.x' into Weights-v2.0-GF-master 2022-11-24 11:59:24 +01:00
Mael Rouxel-Labbé 841373df6d Merge branch 'Weights-v2.0-GF' into Weights-v2.0-GF-5.5.x 2022-11-24 11:58:53 +01:00
Mael Rouxel-Labbé 0ecffe2913 Avoid conflicts between 'OpenMesh' as a mesh template parameter and namespace 2022-11-24 11:50:06 +01:00
Mael Rouxel-Labbé 181344f6cd Merge branch 'Weights-v2.0-GF-5.5.x' into Weights-v2.0-GF-master 2022-11-22 18:35:18 +01:00
Mael Rouxel-Labbé e5cb2f8225 Merge branch 'Weights-v2.0-GF' into Weights-v2.0-GF-5.5.x 2022-11-22 18:35:06 +01:00
Mael Rouxel-Labbé 613ae0d564 Proper fix after botched fix (adb10155fc) 2022-11-22 18:33:43 +01:00
Mael Rouxel-Labbé 491a77397c Merge branch 'Weights-v2.0-GF-5.5.x' into Weights-v2.0-GF-master 2022-11-22 17:53:26 +01:00
Mael Rouxel-Labbé f6ac98882a Merge remote-tracking branch 'mine/Weights-v2.0-GF' into Weights-v2.0-GF-5.5.x 2022-11-22 17:51:36 +01:00
Mael Rouxel-Labbé adb10155fc Use kernel traits to adapt put() to point coordinates type 2022-11-22 17:22:44 +01:00
Laurent Rineau 5cc489991a Merge pull request #7003 from sloriot/BGL-OpenMesh_const_point_operator
Add a const version of the operator
2022-11-07 10:08:10 +01:00
Sébastien Loriot 54629efea2 make the operator const 2022-11-03 15:51:11 +01:00
Sébastien Loriot ac8b6d4731 boost::is_same --> std::is_same 2022-06-10 08:18:20 +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é df560987a6 Whitespace & cleaning changes 2021-10-08 12:13:43 +02:00
Sébastien Loriot bd3f47c16e fix 3 args put for open mesh 2020-03-24 11:02:57 +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
Andreas Fabri 4581f1b7a8 Morte replacements 2019-06-05 08:39:55 +02: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
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 86c1cfb65d factorize implementation for PolyMesh_Array and TriMesh_Array
I removed add_face(VertexIterator, VertexIterator, FG) as it is not
required by MutableFaceGraph and was the only function with
a different implementation between the 2 classes
2017-12-19 15:48:07 +01:00