Commit Graph

286 Commits

Author SHA1 Message Date
Simon Giraudot 0e81f39e07 Document parameters() in CGAL::Point_set_3 2018-01-10 16:39:32 +01:00
Simon Giraudot 210bb83123 Update Point_set_3 examples and tests, remove Point_set_processing overloads 2018-01-10 16:39:31 +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 04283ffb3f Add undocumented way to write PLY comments in write_ply_point_set() 2017-10-04 10:11:44 +02:00
Simon Giraudot fcd6068858 Add undocumented way to recover PLY comments from read_ply_point_set() 2017-10-04 09:42:48 +02:00
Laurent Rineau 4594430aac Merge pull request #2138 from sgiraudot/Point_set_processing-Las_IO-GF
Point set processing: LAS I/O
2017-07-17 12:45:24 +02:00
Simon Giraudot 56919f961b Fix static assertion by using a templated tag false 2017-07-11 11:59:40 +02:00
Simon Giraudot 66cd564be4 Warning fix: missing return 2017-07-11 11:59:40 +02:00
Simon Giraudot 914a6fe8b9 Add non-CXX11 overloads of PLY/LAS IO for Point_set_3 to display error messages 2017-07-11 11:59:39 +02:00
Simon Giraudot 4b3a506d44 Fix detection of required C++11 features 2017-07-11 11:58:53 +02:00
Simon Giraudot 18dbc0677f Fix bad #ifdef #endif macros 2017-07-11 11:58:53 +02:00
Simon Giraudot a644f31cd9 Include CGAL/config.h to test macros 2017-07-11 11:58:53 +02:00
Simon Giraudot c1f0815ed9 C++11 protection in point_set_3 overloads 2017-07-11 11:58:53 +02:00
Simon Giraudot 00a1149131 Fix LAS/PLY reading functions for Point_set_3 2017-07-11 11:58:51 +02:00
Simon Giraudot 4027ef814c Capitalize tag classes 2017-07-11 11:58:49 +02:00
Simon Giraudot cb6e739f0e Replace namespaces Ply/Las to PLY/LAS 2017-07-11 11:58:49 +02:00
Simon Giraudot d0b760a9e2 User and reference manuals 2017-07-11 11:58:49 +02:00
Simon Giraudot ced26cc733 First version of LAS writer 2017-07-11 11:58:49 +02:00
Simon Giraudot 6da16852c6 LAS reader for Point_set_3 2017-07-11 11:58:48 +02:00
Simon Giraudot d30b7a4ef8 Update PLY IO for Point_set_3 2017-07-11 11:58:48 +02:00
Simon Giraudot a61d6e02a4 Fix Point_set_3::remove(const Index&) and add test 2017-07-04 15:18:51 +02:00
Simon Giraudot d005981b52 Bugfix: use find() to compare string to avoid carriage return problems 2017-05-29 11:08:32 +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 7bcb5b02eb Fix warnings 2017-01-05 07:57:05 +01:00
Simon Giraudot f9dcc4b721 Fix warnings 2017-01-04 10:40:24 +01:00
Simon Giraudot d08efe278c Use max precision for stringstream 2016-10-28 14:48:25 +02: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 de818c427e Fixed operator<< 2016-09-30 10:02:40 +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 f095e21e60 Bugfix: has_normal_map() instead of has_normals() 2016-09-27 14:37:08 +02:00
Simon Giraudot 0017a02317 Add missing const 2016-09-27 14:36:58 +02:00
Simon Giraudot 21c95b267c Explicit Point_set_3 parameter in PSP overloads 2016-09-27 11:39:17 +02:00
Simon Giraudot 2dc269bc05 Better encapsulation of Index generation 2016-09-27 11:01:18 +02:00
Simon Giraudot cfbbbd5c4e Convenience PSP overloads 2016-09-26 15:36:16 +02:00
Simon Giraudot 1b9c30e5f1 Do not document ply interpreter 2016-09-26 15:35:46 +02:00
Simon Giraudot a62ba4c627 Update user manual + features with reviews 2016-09-26 15:34:42 +02:00
Simon Giraudot f631b25cf5 Update other include files 2016-09-26 09:38:00 +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 75d49bab9c Update PLY reader 2016-09-23 12:29:15 +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 d47c39ecf6 Add overloads for point set processing functions 2016-09-22 14:02:38 +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
Simon Giraudot 106319a0e8 Replace template Kernel by template Point (+ Vector) 2016-09-21 12:44:08 +02:00
Simon Giraudot bb41464984 Update manual with first review 2016-09-21 08:30:09 +02:00
Simon Giraudot 68650b2a3c Correct typos in doc 2016-09-19 09:38:55 +02:00
Simon Giraudot c534afaf79 Use documented types 2016-09-19 09:04:56 +02:00
Simon Giraudot 6b9055d3cb Corrections on doc 2016-09-16 15:12:13 +02:00
Simon Giraudot 937d4bfae9 Document PLY interpreter 2016-09-16 15:11:51 +02:00
Simon Giraudot 6d416a1795 Add missing method: get property push pmap 2016-09-16 14:21:10 +02:00
Simon Giraudot d3cd7f4d6c More on reference manual + some fixes 2016-09-15 17:14:40 +02:00
Simon Giraudot 977364b662 More on reference manual 2016-09-15 11:50:48 +02:00
Simon Giraudot a47c29376d WIP: reference manual 2016-09-14 17:53:42 +02:00
Simon Giraudot 23c184a138 WIP: ref manual 2016-09-13 18:01:36 +02:00
Simon Giraudot 91a372772d New feature: read whole content of ply point set to Point_set_3 2016-09-13 17:15:09 +02:00
Simon Giraudot f04ce6a85e Add method to get info from point set 2016-09-13 17:13:09 +02:00
Simon Giraudot 92b8e1fd82 Simplify API 2016-09-13 15:07:21 +02:00
Simon Giraudot a9c35e17de Reintroduce difference between pmap and push_pmap 2016-09-12 15:18:51 +02:00
Simon Giraudot e343c08794 Add const pmap if only get() is needed 2016-09-09 14:28:03 +02:00
Simon Giraudot 2dd21ec77a Minor corrections 2016-09-09 09:39:53 +02:00
Simon Giraudot 2d035b3e6c Move Point_set_3 to its own package 2016-09-09 08:30:26 +02:00