Clement Jamin
1f11dfa004
Use cache when computing furthest neighbors (incremental seach)
2017-09-08 18:34:36 +02:00
Clement Jamin
2f305ec10f
Use cache when computing furthest neighbors
2017-09-08 17:37:09 +02:00
Clement Jamin
82b1ebb063
Clean-up code
2017-06-27 17:59:21 +02:00
Clement Jamin
0de1362e09
Use cache if available for NEAREST neighbor search
2017-06-21 00:34:02 +02:00
Clement Jamin
1cfab77634
Rename header file
2017-06-20 19:52:09 +02:00
Clement Jamin
17a683484f
Move some code to Distance_helper.h + copyright + bug fix
2017-06-20 19:47:26 +02:00
Clement Jamin
b5e948be92
FT is supposed to be public
2017-06-20 19:46:40 +02:00
Clement Jamin
d1659e0315
More minor code improvements
2017-06-20 15:13:02 +02:00
Clement Jamin
4cabf30131
Shorten typedefs
2017-06-20 15:09:55 +02:00
Clement Jamin
33e188dac1
Fix bad merge
2017-06-19 16:46:23 +02:00
Clement Jamin
5b9562ea84
Merge branch 'Triangulation-add_regular_tri-cjamin_mglisse-old' into Triangulation-add_regular_tri-cjamin_mglisse
2017-06-16 11:09:07 +02:00
Clement Jamin
a801221193
Remove the use of numeric_limits + fix typo + better interruptible version
2017-06-13 17:07:20 +02:00
Clement Jamin
069ab04c7e
Add comment
2017-05-22 16:42:07 +02:00
Clement Jamin
5e662a03db
Fix the way we detect the cache
2017-05-22 16:23:58 +02:00
Marc Glisse
54f2b91d6c
Fix printing of empty Kd_tree.
2017-05-22 11:51:52 +02:00
Clement Jamin
e9c35e3861
Allow to enable/disable cache of points
2017-05-19 16:06:02 +02:00
Clement Jamin
26ee6b1a10
Auto-detect if the distance functor has some member functions:
...
transformed_distance_from_coordinates
interruptable_transformed_distance
2017-05-09 17:01:05 +02:00
Clement Jamin
a6c1dfc7a1
Rename the recently-added distance functions
2017-05-09 16:50:24 +02:00
Marc Glisse
f0de24f91f
Update commented-out code to use functor equal_to_p.
2017-05-02 22:35:19 +02:00
Marc Glisse
49dc0855cd
Rename invalidate_built to invalidate_build.
2017-05-02 22:23:34 +02:00
Marc Glisse
e5c8142bcf
Merge branch 'Spatial_searching-misc-glisse-old' into Spatial_searching-misc-glisse
2017-04-29 09:46:05 +02:00
Clement Jamin
89c4e4a8b8
Remove duplicated code
2017-04-27 10:15:36 +02:00
Clement Jamin
7750f85867
WIP: Use a cache storing contiguously the coordinates of all points
...
Note: not backward-compatible, and not useful for all cases
2017-04-24 17:04:48 +02:00
Clement Jamin
6a5dbdc333
Add new variants of transformed_distance
...
- Variant taking iterators on coordinates of P instead of P itself
- Variant with an additional param `stop_if_geq_to_this`: during the computation,
if the partially-computed distance `pcd` gets greater or equal
to `stop_if_geq_to_this`, the computation is stopped and `pcd` is returned.
2017-04-24 16:52:55 +02:00
Laurent Rineau
909e393e61
Merge pull request #1808 from MaelRL/Spatial_searching-Fix_fuzzy_query_item_border
...
Spatial searching: Fix fuzzy query items
2017-01-30 09:54:55 +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
Marc Glisse
cfd4e92153
Use extended Kd_tree information also for search / search_any_point.
...
Note that we don't want to use set_upper_bound, because it calls
set_max_span, which the current split already avoids.
Also fix Kd_tree_rectangle::lower() with fixed dimension.
2017-01-13 02:11:40 +01:00
Mael Rouxel-Labbé
2d3daa5f58
Doc changes
2017-01-09 22:52:56 +01:00
Mael Rouxel-Labbé
fe8f36bcac
Trailing whitespace in Spatial searching
2017-01-09 17:46:47 +01:00
Mael Rouxel-Labbé
cd89288d46
Revert "Fix a bug in Spatial_searching's fuzzy_iso_box"
...
This reverts commit 5ed7255adb .
2017-01-09 12:14:03 +01:00
Mael Rouxel-Labbé
dcdfc4b95d
Revert "Spatial_searching: bug reported and fixed by Marc Glisse"
...
This reverts commit ed526b8f22 .
2017-01-09 12:14:00 +01:00
Mael Rouxel-Labbé
9491a9a0cf
Revert "Fix a bug in Spatial_searching's fuzzy_sphere"
...
This reverts commit c0cbdab3d8 .
2017-01-09 12:13:12 +01:00
Maxime Gimeno
06dd4a4522
Add a geom-traits concept for distance functions
...
Update the code and the doc accordingly
2016-12-29 07:20:23 +01:00
Marc Glisse
482b0bc073
Store weights of Weighted_Minkowski_distance in an array if dimension is known.
...
This gains 15% on the running time of a real application in 2D.
2016-12-13 00:33:33 +01:00
Marc Glisse
e45cb3961b
Remove undocumented and unused constructor of Weighted_Minkowski_distance.
2016-12-13 00:29:16 +01:00
Marc Glisse
1c4554da08
Remove dead call to resize().
2016-12-12 23:54:58 +01:00
Marc Glisse
f64f7fbf1a
Unused parameter in release mode.
2016-12-12 23:30:52 +01:00
Laurent Rineau
c99f0366a8
Merge remote-tracking branch 'cgal/releases/CGAL-4.9-branch'
2016-12-12 17:47:56 +01:00
Andreas Fabri
ed526b8f22
Spatial_searching: bug reported and fixed by Marc Glisse
2016-12-04 11:26:50 +01:00
Marc Glisse
790ca3f05f
Remove redundant call to std::copy.
2016-11-27 19:07:52 +01:00
Marc Glisse
f7741b1f2b
Confusion between the 2 islower flags. Ordering issue on setting / clearing removed_ flag.
2016-11-25 17:19:03 +01:00
Marc Glisse
d1b461350b
Incomplete renaming in last changes...
2016-11-25 15:29:47 +01:00
Marc Glisse
36af1c17f4
Let remove() take a functor as argument.
2016-10-27 23:17:42 +02:00
Marc Glisse
df573404d0
Merge branch 'Spatial_searching-misc-glisse-old' into Spatial_searching-misc-glisse
2016-10-26 11:12:04 +02:00
Marc Glisse
3038832982
Handle insert-after-remove in Kd_tree.
...
Untested.
2016-10-26 11:02:41 +02:00
Laurent Rineau
51f5697d3d
Add missing #include
2016-09-30 15:23:14 +02:00
Clement Jamin
fa6ecf39be
Merge branch 'Triangulation-add_regular_tri-cjamin_mglisse-old' into Triangulation-add_regular_tri-cjamin_mglisse
2016-09-09 12:55:43 +02:00
Marc Glisse
a1c231737b
Rewrite to handle points on the boundary that may be on either side.
2016-08-25 19:39:58 +02:00
Sébastien Loriot
6326ea2372
Merge remote-tracking branch 'cgal/releases/CGAL-4.8-branch'
2016-06-16 16:19:04 +02:00
Sébastien Loriot
7677241b7f
replace static_cast and add missing const
2016-06-14 15:06:37 +02:00