Commit Graph

66 Commits

Author SHA1 Message Date
Simon Giraudot 1b7a2eb2c5 Replace cancel_removal() by cancel_removals() 2019-02-07 11:36:04 +01:00
Simon Giraudot ee2d6eb3ab Add useful typedefs of templates of Point_set_3 2019-02-07 11:36:04 +01:00
Simon Giraudot 776a8b735c Fix doc note about iterator invalidations 2019-02-07 11:36:04 +01:00
Simon Giraudot 6a016e4c27 Update user manual 2019-02-07 11:36:04 +01:00
Simon Giraudot 6f2eed5540 Add method to get properties and types as string 2019-02-07 11:36:04 +01:00
Simon Giraudot f778e5e151 Add methods to easily transfer properties from one point set to another 2019-02-07 11:36:04 +01:00
Simon Giraudot ed748c8ce9 Unify API of add_normal_map() with add_property_map() 2019-02-07 11:34:56 +01:00
Simon Giraudot e11e12b69f Better remove() / is_removed() methods 2019-02-07 11:34:56 +01:00
Sébastien Loriot 2f9408f867 rename link name to match package name 2018-10-08 10:28:55 +02:00
Sébastien Loriot a2e8a1c68f add the suffix Ref to doxygen link to reference 2018-10-08 10:26:56 +02:00
Simon Giraudot effb28cdf2 Fix insertion method, keeping the index 2018-09-06 09:58:49 +02:00
Simon Giraudot c52b32b744 Add trick to get FT right for general PointRange AND for CGAL::Point_set_3 2018-01-11 14:04:19 +01:00
Simon Giraudot 0e81f39e07 Document parameters() in CGAL::Point_set_3 2018-01-10 16:39:32 +01:00
Simon Giraudot fffefbaeaf add all_default() method with point set 3 overload 2018-01-10 16:38:36 +01:00
Laurent Rineau 1c2e9df8cf Merge branch 'releases/CGAL-4.11-branch' 2017-12-19 16:29:10 +01:00
Simon Giraudot 9a7f07cd1d Reinitialize properties of Point_set_3 2017-12-08 10:18:09 +01:00
Sébastien Loriot ee57fc2d6c add SPDX identifier for files under the GPL-3+ license 2017-11-12 10:17:51 +01:00
Simon Giraudot a61d6e02a4 Fix Point_set_3::remove(const Index&) and add test 2017-07-04 15:18:51 +02:00
Simon Giraudot 800c16f2e1 Warning fix: explicit conversion to size_type 2017-04-07 11:49:59 +02:00
Simon Giraudot af78f66230 Use boost::uint32_t instead of std::size_t as size type 2017-04-05 15:29:53 +02:00
Simon Giraudot 4cfbe98564 Point_set_3: fix documentation bug (concept Index accepts constructor with std::size_t) 2017-04-05 15:18:28 +02:00
Laurent Rineau 7b2a150e84 Fix <CGAL/Surface_mesh/Properties.h> and its uses
The PR #1791 introduced `CGAL::Point_set_3`, and factorized the
`Property_map` implementation of `Surface_mesh` into a new class
template `CGAL::Properties::Property_map<Key, T>`.

The backward compatibility was supposed to be ensured by the fact that
`Surface_mesh<Point>::Property_map<Key,T>` had
`Properties::Property_map<Key, T>` as base class. But that compatibility
was only partial, and there could be ambiguities in the calls to `get`
and `put` with those property maps.

This commit/PR renamed `Properties::Property_map` to
`Properties::Property_map_base`, and added a third parameter, used as
the `Derived` class in the CRTP used by `boost::put_get_helper`. That
way, the `get` and `put` functions are defined directory on the real
class `Surface_mesh::Property_map<Key, T>` and not on its base class.

The same has been modified in `CGAL::Point_set_3`.

That makes the use of `Property_base_base` and `Property_container` a
little trickier, but that removes several ugly non-portable hacks, like
the `reinterpret_cast` that were used to convert a pointer to base class
of the pmap to the pointer the real pmap. Now that is a lot cleaner.

I have verified that the documentation is not modified. Actually, the
PR #1791 did modify the documentation of `Surface_mesh` (see the member
method `add_property_map` for example), and this PR fixes the situation:
the documentation of `Surface_mesh` is put back to the version in
CGAL-4.9.
2017-02-08 14:33:18 +01:00
Simon Giraudot d7eb45c37b Bugfix: point is marked as removed if iterator distance is lesser OR equal to 0 2017-01-30 08:45:22 +01:00
Sébastien Loriot 50510c05ea add include directive for license of all GPL header files
done using:
ack-grep "^GPL" */package_info/*/license.txt -l | awk -F "/" '{print $1}' > /tmp/gpl_packages
for i in `cat /tmp/gpl_packages | \
          grep -v Operations_on_polyhedra | \
          grep -v Algebraic_kernel_for_circles | \
          grep -v Algebraic_kernel_for_spheres | \
          grep -v Polyhedron_IO`;
do
  echo $i
  python Scripts/developer_scripts/add_license_in_pkg_header.py $i
done
python Scripts/developer_scripts/add_license_in_pkg_header.py Operations_on_polyhedra Polygon_mesh_processing
python Scripts/developer_scripts/add_license_in_pkg_header.py Algebraic_kernel_for_circles Circular_kernel_2
python Scripts/developer_scripts/add_license_in_pkg_header.py Algebraic_kernel_for_spheres Circular_kernel_3
python Scripts/developer_scripts/add_license_in_pkg_header.py Polyhedron_IO Polyhedron
2017-01-19 15:20:25 +01:00
Simon Giraudot 5b7dea069e Two bug fixes 2016-10-18 15:39:51 +02:00
Simon Giraudot bdbd31ee11 Bugfix: do not define the prototype of Push_property_map beforehand 2016-10-18 15:27:38 +02:00
Simon Giraudot 17b25a50ac Update with latest review 2016-10-14 14:31:06 +02:00
Simon Giraudot 69c6f96727 Fix properties() behavior 2016-10-12 12:16:03 +02:00
Simon Giraudot 8a18e754be Fix boost demangle 2016-10-12 11:33:10 +02:00
Simon Giraudot 3a24b788c4 Fix some warnings/errors from testsuite 2016-10-12 10:36:57 +02:00
Simon Giraudot 6b17b65705 Update manual with latest review 2016-10-12 09:18:45 +02:00
Simon Giraudot 60377f2f10 Bugfix: update outdated method name 2016-10-11 14:22:34 +02:00
Simon Giraudot 8fbacbcf11 Add clear_properties() method 2016-10-11 09:08:58 +02:00
Simon Giraudot 62578b554c Update doc with latest review 2016-10-11 08:54:27 +02:00
Simon Giraudot e877b0f688 Move stream operators to IO 2016-09-28 11:15:29 +02:00
Simon Giraudot d4ab17634e Update reference manual 2016-09-28 10:49:42 +02:00
Simon Giraudot a6b64c907b WIP: operator<< to recover all properties in PLY output 2016-09-27 15:38:30 +02:00
Simon Giraudot 0017a02317 Add missing const 2016-09-27 14:36:58 +02:00
Simon Giraudot 2dc269bc05 Better encapsulation of Index generation 2016-09-27 11:01:18 +02:00
Simon Giraudot a62ba4c627 Update user manual + features with reviews 2016-09-26 15:34:42 +02:00
Simon Giraudot 786b79f30f Safer index behavior 2016-09-26 09:37:06 +02:00
Simon Giraudot e56570f366 Unify names and remove superfluous methods 2016-09-26 09:00:32 +02:00
Simon Giraudot 4ce6cffe9e Revert "Cleaner and safer way of accessing elements in pmaps with indices"
This reverts commit 97c31a8327.
2016-09-26 08:54:01 +02:00
Simon Giraudot 97c31a8327 Cleaner and safer way of accessing elements in pmaps with indices 2016-09-23 15:41:06 +02:00
Simon Giraudot 2aba8511e7 Update ref man + corrections of API 2016-09-23 12:26:37 +02:00
Simon Giraudot 096c8a7b3b Unify API with Range and Surface_mesh 2016-09-22 15:41:56 +02:00
Simon Giraudot ba6631abaa Add new constructors with properties 2016-09-22 14:45:53 +02:00
Simon Giraudot d59d54fc17 Add useful typedefs 2016-09-22 13:58:38 +02:00
Simon Giraudot d3c2c455c0 Simplify notations of property maps 2016-09-21 15:21:46 +02:00
Simon Giraudot a929cab515 Replace Item by Index 2016-09-21 12:45:27 +02:00