Sébastien Loriot
ad7e4754aa
Merge remote-tracking branch 'cgal/6.0.x-branch' into master
2025-03-07 17:26:54 +01:00
Sébastien Loriot
48d8f54796
use previous vertex as hint
2025-03-03 18:22:05 +01:00
Jane Tournois
de16b71eba
use minimal_weight (i.e. edge_min_size) in insert_corners()
2025-03-03 14:52:04 +00:00
Sebastien Loriot
636368ed8f
Always init time_stamp to -2 ( #8714 )
...
It is not clear to me that this is the right thing to do:
- it is done for some classes
- but in some test, a comment mention that it should be uninitialized
(the test works if init to -1 but not to 0).
- Base_time_stamper is doing an init to -2
2025-02-12 19:40:27 +01:00
Sebastien Loriot
14b83f0d3e
boost::tie -> std::tie ( #8715 )
2025-02-12 19:36:19 +01:00
Sebastien Loriot
54bfdfe04d
Mesh 3 : initial_points_generator parameter for make_mesh_3 point initialization ( #7798 )
...
## Summary of Changes
Added a `initial_points_generator` parameter in make_mesh_3.
With this parameter, we can use a custom functor when initializing the
C3t3 complex.
This functor must follow the
[Initial_points_generator](https://cgal.github.io/7798/v0/Mesh_3/classInitialPointsGenerator.html )
concept.
Tasks:
- [x] Add `initial_points_generator` parameter in `make_mesh_3`
- [x] Make an example
- [x] Write `Construct_initial_points_labeled_image` into a header
- [x] Make `initialize_triangulation_from_labeled_image` use
`Construct_initial_points_labeled_image`
- [x] Change definition of concept `InitialPointsGenerator` to output
`std::tuple<MeshDomain::Point_3, int dimension, MeshDomain::Index>`
(instead of `std::pair<MeshDomain::Point_3, MeshDomain::Index>`)
- [x] Make it pass checks
- [x] Document `initial_points_generator` parameter in `make_mesh_3`
- [x] Document `Construct_initial_points_labeled_image` header
- [x] Document example
- [x] Delete `initialize_triangulation_from_labeled_image` and
`initialize_triangulation_from_gray_image`
- [x] Make an example of labelled and gray image initialisation with the
parameter or the old custom initialization.
- [x] Make small feature page
- [x] add `Construct_initial_points_gray_image.h`, similar to
`Construct_initial_points_labeled_image.h`
- [x] Maybe add a test ?
- [x] announce in `CHANGES.md`, see
https://github.com/CGAL/cgal/pull/7798#issuecomment-2082701644
## Release Management
* Affected package(s): Mesh_3
* Issue(s) solved (if any):
* fix #922
* fix #7469
* discussion #7537
* previous closed PR #7757
* Feature/Small Feature (if any):
[Mesh_3_initial_points_generator_parameter](https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Mesh_3_initial_points_generator_parameter )
* Link to compiled documentation
[*here*](https://cgal.github.io/7798/v4/Manual/index.html ):
*
[make_mesh_3](https://cgal.github.io/7798/v4/Mesh_3/group__PkgMesh3Functions.html#gac8599a0c967075f740bf8e2e92c4770e )
has been modified to receive the parameters :
*
[initial_points_generator](https://cgal.github.io/7798/v4/Mesh_3/group__PkgMesh3Parameters.html#gaf53777b83f1b2f3e7d49275dbab6e46b )
*
[initial_points](https://cgal.github.io/7798/v4/Mesh_3/group__PkgMesh3Parameters.html#gae94f38c6cd23cce45a55608e881a546a )
* The
[InitialPointsGenerator](https://cgal.github.io/7798/v4/Mesh_3/classInitialPointsGenerator.html )
concept that the functor must be a model of.
* A model of this concept :
[Construct_initial_points_labeled_image](https://cgal.github.io/7798/v4/Mesh_3/structCGAL_1_1Construct__initial__points__labeled__image.html )
* License and copyright ownership:
2025-02-05 08:29:06 +01:00
Laurent Rineau
fad5e30a54
initialize to -2, to use the debugging assertions
2025-01-31 18:09:07 +01:00
Sébastien Loriot
107f3696dc
boost::tie -> std::tie
2025-01-24 14:20:00 +01:00
Sébastien Loriot
eb0da467ed
always init time_stamp to -1
2025-01-24 11:08:34 +01:00
Jane Tournois
7e3aa09f2a
complete move file
2024-12-19 22:03:28 +01:00
Jane Tournois
a98101aa75
move tuple_like_helpers.h to STL_Extension to avoid dependency on Mesh_3
2024-12-19 17:38:14 +01:00
Jane Tournois
84e55c3982
fix include
2024-12-19 17:23:57 +01:00
Jane Tournois
2ed54dfa3a
add constructors documentation
2024-12-19 17:17:30 +01:00
Jane Tournois
1a4cc658f3
wip apply Laurent's reviews
2024-12-19 16:53:49 +01:00
Jane Tournois
7f4e5b7e84
make doc more clear
2024-12-19 12:45:29 +01:00
Laurent Rineau
2496122707
fix missing fix
2024-12-19 12:22:00 +01:00
Jane Tournois
7e5b9eec9b
rename concept with _3 postfix
2024-12-19 12:04:10 +01:00
Jane Tournois
740863cb02
doc review
2024-12-19 11:50:10 +01:00
Laurent Rineau
51b9c4a4b2
cleanup
2024-12-18 18:50:02 +01:00
Laurent Rineau
8e5fab0c98
allow the initial points generator to be non-const
...
A lot of type erasure was necessary.
2024-12-18 16:45:25 +01:00
Laurent Rineau
e2d11a0fc5
allow a range as parameter
...
The preview implementation enforced the use of a full container.
2024-12-18 13:44:54 +01:00
Laurent Rineau
5c70d487a1
actually allow tuple-like objects, and test that feature
2024-12-17 18:27:13 +01:00
Sebastien Loriot
166681a6ce
Periodic_3_mesh_3: Avoid Making Copies ( #8639 )
...
## Summary of Changes
Turn several copies into `const&` to avoid allocation of data members of
traits object with multiprecision coordinates. In release mode the gain
is around 10%..
To address the timeouts in the testsuite in Debug mode, I also changed
cell size and approximation error.
## Release Management
* Affected package(s): Periodic_triangulation_3_mesh_3
* License and copyright ownership: unchanged
2024-12-10 16:24:25 +01:00
Andreas Fabri
e9775789e5
Apply suggestions from code review
...
Co-authored-by: Mael <mael.rouxel.labbe@geometryfactory.com>
2024-12-06 14:49:33 +01:00
Sébastien Loriot
caf716cf47
Merge remote-tracking branch 'cgal/6.0.x-branch' in master
2024-12-06 09:58:43 +01:00
Andreas Fabri
fc0f1977f6
Add a const&
2024-12-03 08:27:37 +00:00
Jane Tournois
47e575b779
remove extra "else"
2024-11-29 10:33:11 +01:00
Andreas Fabri
0261184dee
WIP
2024-11-28 14:31:01 +00:00
Jane Tournois
7e1f24e5fb
when sizing field is smaller than min_size, return min_size!
2024-11-26 18:08:10 +01:00
Jane Tournois
d08d6643e8
Merge remote-tracking branch 'cgal/master' into Mesh-3-rework-make-mesh-point-initialization-2-aclement
...
# Conflicts:
# Installation/CHANGES.md
2024-11-07 12:45:40 +01:00
Jane Tournois
75d3d30cb4
fix unused variable warnings and add a const
2024-11-05 10:27:54 +01:00
Jane Tournois
f77f9c6847
Merge remote-tracking branch 'cgal/master' into Mesh-3-rework-make-mesh-point-initialization-2-aclement
...
# Conflicts:
# Installation/CHANGES.md
2024-10-23 16:35:56 +02:00
Sébastien Loriot
0833af4680
Merge remote-tracking branch 'cgal/master' into HEAD
2024-10-22 08:21:55 +02:00
Sébastien Loriot
a99dcceae8
Merge pull request #8519 from albert-github/feature/issue_8515_1
...
issue #8515 Spelling mistakes found checking `en-GB` to `en-US`
2024-10-14 09:42:14 +02:00
albert-github
dd02af92a2
issue #8515 Spelling mistakes found checking `en-GB` to `en-US`
...
Spelling corrections, `en-GB` -> `en-US`
2024-10-05 11:28:29 +02:00
Andreas Fabri
5fe32284af
Typo: labelled is UK English
2024-10-03 11:23:23 +01:00
Jane Tournois
4573f78d8b
doc
2024-09-30 14:02:50 +02:00
Jane Tournois
c1f2236ee3
Merge remote-tracking branch 'cgal/master' into Mesh-3-rework-make-mesh-point-initialization-2-aclement
...
# Conflicts:
# Installation/CHANGES.md
2024-09-30 14:02:09 +02:00
Jane Tournois
f3b9a5ac84
doc (Mael's review)
2024-09-30 12:46:29 +02:00
Jane Tournois
88457ee5b3
make initialization logic consistent
...
and fix doc accordingly
1. protect features
2. insert initial_points() range
3. use initial_points_generator(), if provided
4. use domain.construct_initial_points_object(), if initialization not complete
2024-09-30 11:10:14 +02:00
Jane Tournois
490a6ad589
update doc
2024-09-24 12:22:32 +02:00
Jane Tournois
b3a8530dcf
use new API with named paremeter initial_points_generator in demo
...
and fix compilation issues
2024-09-24 11:05:41 +02:00
Jane Tournois
39254bb7db
introduce Dummy_initial_points_generator
...
fix compilation of Mesh_3 tests and examples
2024-09-20 17:17:41 +02:00
Jane Tournois
b5740393b2
compilation of examples fixed
2024-09-20 13:58:24 +02:00
Jane Tournois
026850cf97
use initial points vector
2024-09-19 12:24:18 +02:00
Jane Tournois
ce9cd9e596
wip PR https://github.com/CGAL/cgal/pull/7798
2024-09-17 18:04:40 +02:00
Jane Tournois
c55477cda3
document n
2024-09-12 15:36:13 +02:00
Jane Tournois
636fceb129
remove the hardly readable std::tuple and use MeshDomain::Intersection instead
2024-09-12 14:41:21 +02:00
Jane Tournois
b75443637a
tell more about the "all connected components" thing
2024-09-12 12:26:44 +02:00
Jane Tournois
93fd7f87c7
vertices(edge) is not available in P3T3
2024-08-20 10:58:38 +02:00