Commit Graph

377 Commits

Author SHA1 Message Date
Sébastien Loriot c5ab9f9adc Merge remote-tracking branch 'cgal/6.0.x-branch' into cgal/master 2025-04-10 18:19:14 +02:00
Sebastien Loriot b33204d5f2
Spatial_search: Duplicate point handling (#8705)
## Summary of Changes

stop splitting nodes if the contained points are only duplicates

## Release Management

* Affected package(s): dD Spatial Searching
2025-04-10 18:08:30 +02:00
Sven Oesau 9d1a089abf missing dimension in constructor
removing default constructor for dynamic dimension Kd_tree_rectangle
2025-04-08 11:28:37 +02:00
Sébastien Loriot cc77715588 Merge pull request #6849 from JulyCode/gsoc2022-isosurface
Isosurfacing_3 (new package)
2025-04-03 21:41:22 +02:00
Mael Rouxel-Labbé a06a6a35b9 Use std::invoke_result and not result_type to get the return type 2025-03-16 13:27:07 +01:00
Sven Oesau fc254c3c03 fix warning 2025-02-24 14:47:09 +01:00
Sven Oesau 934054c9ba documenting that Median_of_rectangle splitter is robust
bugfix
2025-02-10 17:15:56 +01:00
Sven Oesau fc08cf5fb2 switching to number_utils.h instead of basic.h 2025-02-10 14:54:03 +01:00
Sven Oesau 531e612e5f fix warnings 2025-02-06 10:34:41 +01:00
Sven Oesau 9f049bd425 added missing header 2025-02-05 14:40:43 +01:00
Sven Oesau 61ab2d3bfd bugfix 2025-02-05 13:47:31 +01:00
Sven Oesau 408730b30a Median_of_rectangle: prevent using largest span of bbox as split axis when actual spread is 0 2025-02-05 13:29:02 +01:00
Sven Oesau 48569ff99c prevent linearity in median splitters due to duplicated points 2025-01-30 16:55:51 +01:00
Sven Oesau 5b28489b16 fixed test_pmp_distance 2025-01-23 11:00:44 +01:00
Sven Oesau 4228eef10a stop splitting nodes if the contained points are only duplicates 2025-01-21 11:51:03 +01:00
Sébastien Loriot 4d08302a1f use std header 2024-12-23 09:48:13 +01:00
Jane Tournois 6a42415cb3 Merge remote-tracking branch 'cgal/master' into Tet_remeshing-with_sizing_field-jtournois 2024-04-29 11:02:07 +01:00
Niklas Hambüchen 3b6a821105 kd-tree: Deallocate Point pointer vector after build().
This

    vector<const Point_d*> data;

is no longer needed after being `.clear()`ed at the end of `build()`.
This can save a good amount of memory, a `Point_d*` on a 64-bit system
is 8 bytes; almost as large as a typical 3-float `Point_d`.

There's no point keeping its capacity, since any call to `build()`
will efficiently `.reserve()` it anyway.
2024-04-22 01:32:16 +02:00
Jane Tournois 258b4d3c82 introduce new constructor in Kd_tree 2024-03-07 15:12:47 +01:00
Sébastien Loriot 8700394122 boost::mpl::if_ -> std::conditional 2023-09-24 22:57:20 +02:00
Laurent Rineau 7cd107a462 Merge pull request #7686 from sloriot/SS-fix_size_after_remove
Correct size() in case some points were removed
2023-09-06 11:54:06 +02:00
Laurent Rineau e8d819742b Merge pull request #7686 from sloriot/SS-fix_size_after_remove
Correct size() in case some points were removed
2023-09-06 11:52:40 +02:00
Sébastien Loriot f759a61349 correct size() in case some points were removed 2023-09-04 14:24:48 +02:00
Sébastien Loriot b66afab814 Merge remote-tracking branch 'sloriot/CGAL-using_c++17_stl' into HEAD 2023-07-05 11:29:35 +02:00
Sébastien Loriot dfc386d65b Merge branch 'master' into HEAD 2023-06-22 14:05:45 +02:00
Sébastien Loriot f936680600 Merge remote-tracking branch 'cgal/master' into HEAD 2023-06-15 18:48:39 +02:00
Sébastien Loriot 9cdfe70abb Merge remote-tracking branch 'sloriot/CGAL-toward_6.0' 2023-06-15 11:34:09 +02:00
Sébastien Loriot 604dcdc435 boost::optional => std::optional 2023-06-15 10:57:09 +02:00
Sébastien Loriot bbc4d08ee0 Merge remote-tracking branch 'cgal/master' into HEAD 2023-06-15 10:47:07 +02:00
Sébastien Loriot c8a88b9014 remove CGAL_static_assertion* 2023-06-15 10:42:10 +02:00
Sébastien Loriot b039040f73 boost::is_convertible -> std::is_convertible 2023-04-23 22:37:07 +02:00
Sébastien Loriot d4d2225801 boost::is_reference -> std::is_reference 2023-04-23 22:37:07 +02:00
Sébastien Loriot 9ed6c7acdc remove useless include 2023-04-23 22:37:07 +02:00
Sébastien Loriot e82d970d19 boost::next -> std::next 2023-04-23 22:37:07 +02:00
Sébastien Loriot 8b3acae1c7 boost::remove_reference -> std::remove_reference 2023-04-23 22:36:59 +02:00
Sébastien Loriot fa301554ce boost::remove_v -> std::remove_cv_t 2023-04-23 19:13:56 +02:00
Sébastien Loriot 99e7f4806a boost::int -> std::int 2023-04-23 18:43:10 +02:00
Sébastien Loriot fc034c6a5d boost::unit -> std::uint 2023-04-23 18:40:39 +02:00
Laurent Rineau 1dce90ee79 Merge remote-tracking branch 'cgal/master' into CGAL-allow_Epick_with_float-GF 2023-04-07 10:59:51 +02:00
Laurent Rineau 1b223dfce3 Merge pull request #7219 from afabri/Spatial_searching-Epeck-GF
Spatial searching: Make weighted Minkowski Distance working with Epeck
2023-03-02 13:42:16 +01:00
Laurent Rineau 649539d573 Merge pull request #7219 from afabri/Spatial_searching-Epeck-GF
Spatial searching: Make weighted Minkowski Distance working with Epeck
2023-03-02 13:40:15 +01:00
Sébastien Loriot 9e137bca24 Merge 'cgal/master' 2023-01-31 12:26:55 +01:00
Mael Rouxel-Labbé 9976577f8d Add missing headers 2023-01-30 11:57:56 +01:00
Laurent Rineau 5f8930db8c Merge branch '5.5.x-branch'
# Conflicts:
#	Convex_hull_2/test/Convex_hull_2/ch_test_CH.cpp
#	Convex_hull_2/test/Convex_hull_2/ch_test_SC.cpp
#	Convex_hull_2/test/Convex_hull_2/ch_test_SH.cpp
#	Convex_hull_2/test/Convex_hull_2/ch_test_SS.cpp
#	Straight_skeleton_2/include/CGAL/constructions/Straight_skeleton_cons_ftC2.h
#	Straight_skeleton_2/include/CGAL/predicates/Straight_skeleton_pred_ftC2.h
2023-01-27 21:16:14 +01:00
Laurent Rineau 68cca0f8a6 Merge pull request #7144 from sloriot/SS-faster_adapter
Replace shared_ptr with a plain copy
2023-01-27 20:52:18 +01:00
Andreas Fabri 34ad3ded54 Spatial Searching: Make weighted Minkowski work with Epeck 2023-01-27 16:43:52 +00:00
albert-github e837d1d6e6 Spelling correction in respect to function / variable names
Removed trailing whitespace
2023-01-13 18:59:45 +01:00
albert-github 9c2f8ff60e Spelling correction in respect to function / variable names
As indicated in #7041 (Spelling corrections) theer were still some open corrections in respect to variables / functions, these have been addressed heer.
2023-01-13 18:51:28 +01:00
Sébastien Loriot ecb987a9bf do not use shared_ptr ...
... as it is more expensive (in small dimension at least) to
create than copying the point
2022-12-23 13:20:13 +01:00
albert-github 781f9a2943 spelling corrections
After review:
- outputhing -> outputting
- neighbour -> neighbor
2022-11-17 10:25:10 +01:00