Commit Graph

360 Commits

Author SHA1 Message Date
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
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
albert-github c32b1f4127 spelling corrections
Some spelling corrections (Directories starting with `S` rest - `W`),
2022-11-16 13:22:39 +01:00
Laurent Rineau 1c5454dcbe Add Converting_construction to Simple_precision_epick
The difficulty is to detect/define which constructions are "trivial"
and must not be wrapped into `Converting_construction`. Otherwise the
use of `Cartesian_converter`, that uses trivial constructions itself,
can lead to loops and infinite call stacks.
2022-10-28 12:07:58 +02:00
Sébastien Loriot 861588abe1 Merge 'sloriot/CGAL-std_type_traits' into master 2022-08-03 20:19:51 +02:00
Niklas Hambüchen c53ae08deb Spatial_searching: unsigned int -> size_t for vector copy 2022-07-04 11:38:14 +02:00
Sébastien Loriot 37580e9daf missing () in macro + typo fixes 2022-06-14 11:24:21 +02:00
Sébastien Loriot 3fa436459d BOOST_MPL_ASSERT -> static_assert 2022-06-10 08:46:01 +02:00
Sébastien Loriot ac8b6d4731 boost::is_same --> std::is_same 2022-06-10 08:18:20 +02:00
Sébastien Loriot 4f5f8341cc use std::enable_if_t 2022-06-10 07:37:53 +02:00
Laurent Rineau f01b30de0d Merge pull request #6287 from afabri/Spatial_searching-Incremental_Manhattan_fix-GF
Spatial_searching:  Fix incremental search with Manhattan distance
2022-02-18 15:21:42 +01:00
Laurent Rineau 9e4aa2b9c3 Merge pull request #6287 from afabri/Spatial_searching-Incremental_Manhattan_fix-GF
Spatial_searching:  Fix incremental search with Manhattan distance
2022-02-08 23:44:37 +01:00
Laurent Rineau f0c8cd9052 Merge pull request #6297 from afabri/Spatial_searching-dangling_pointer_warning-GF
Spatial_searching: Add a variable as we had a warning about a potentially dangling pointer
2022-02-08 23:44:30 +01:00
Andreas Fabri d6398b5d37 untabify 2022-02-02 09:27:30 +00:00
Andreas Fabri 8201269ab8 Add a variable as we had a warning about a potentially dangling pointer 2022-02-02 09:21:42 +00:00
Andreas Fabri 9888d44de4 Spatial_searching: Fix incremental search with Manhattan distance 2022-01-31 09:44:04 +00:00
Dmitry Anisimov ac7d2a2dea Merge remote-tracking branch 'refs/remotes/origin/Kd_tree-nice_print-danston' into Kd_tree-nice_print-danston 2021-11-23 14:41:48 +01:00
Dmitry Anisimov 45bcedac36 renamed print method to write_graphviz 2021-11-23 14:39:42 +01:00
Dmitry Anisimov c4e816e4a3
Update Spatial_searching/include/CGAL/Kd_tree_node.h
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
2021-11-23 14:17:39 +01:00