Léo Valque
94eb667a9a
Experiment with iterative rotated along all axis cubes
2025-04-25 17:21:07 +02:00
Léo Valque
e2a1c276fc
Experiment with iterative rotated around x cubes
2025-04-25 17:20:17 +02:00
Léo Valque
09f7df8127
add missing reserve for the visitor
2025-04-08 10:53:03 +02:00
Léo Valque
cb7bc4f64d
use macro to define snap version
2025-04-08 10:53:03 +02:00
lvalque
26de563455
Update Polygon_mesh_processing/doc/Polygon_mesh_processing/Polygon_mesh_processing.txt
...
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
2025-04-08 10:52:18 +02:00
lvalque
f588a1506b
Update Polygon_mesh_processing/doc/Polygon_mesh_processing/Polygon_mesh_processing.txt
...
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
2025-04-08 10:52:05 +02:00
lvalque
2cf7cef912
Update Polygon_mesh_processing/doc/Polygon_mesh_processing/Concepts/PMPAutorefinementVisitor.h
...
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
2025-04-08 10:39:53 +02:00
Léo Valque
3cdcc73201
clone test_autorefinement.cmd to test_snap_rounding.cpp to test snap_rounding
2025-04-03 19:32:13 +02:00
Léo Valque
9055d56e1f
use the new internal function of the visitor of autorefinement for the wrapp_visitor of snap_rounding
2025-04-03 18:40:51 +02:00
Léo Valque
a28b294f08
add internal_new_subtriangle to Visistor of autorefinement
2025-04-03 15:14:48 +02:00
Léo Valque
a2a76cf874
add zhou and naive version
2025-04-03 14:31:04 +02:00
Léo Valque
80265d0e54
factorize snap_polygon_soup
2025-04-03 11:42:31 +02:00
Léo Valque
d48a003069
Solve bug with macro that skip repair_polygon_soup
2025-04-03 10:26:22 +02:00
Léo Valque
fddc0aa400
Change name of internal functions
2025-03-19 11:35:42 +01:00
Léo Valque
32f07e7d7a
Move the mutex inside the class Indexes_range who using it
2025-03-19 11:12:13 +01:00
Léo Valque
0009f99680
Debug the visitor of triangle_soup_snap_rounding
2025-03-19 09:52:54 +01:00
Léo Valque
3a0c0980ee
add delete_triangle function to the visitor of test_autorefinement
2025-03-18 15:50:16 +01:00
lvalque
cc593c35d8
Merge branch 'CGAL:master' into PMP_triangle_soup_rounding-GF
2025-03-18 15:47:50 +01:00
lvalque
26debef54a
Update Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/autorefinement.h
...
Co-authored-by: Andreas Fabri <andreas.fabri@geometryfactory.com>
2025-03-18 09:03:20 +01:00
Léo Valque
aa765c2332
Add variant where cluster of points are round to the closest of them to the voxel center instead of the voxel center
2025-03-14 13:58:45 +01:00
Léo Valque
5404b37aa2
correct typo in function name
2025-03-13 19:04:13 +01:00
Léo Valque
ebbd529ef6
Modify soup_triangles_snap_rounding to support a visitor
2025-03-13 18:57:12 +01:00
Léo Valque
765aa430a2
Fix warnings and compile error
2025-03-04 11:41:29 +01:00
Léo Valque
4200d928ff
Reduce default number of iterations
2025-03-03 16:03:55 +01:00
Léo Valque
f615b6537d
missing word in the doc
2025-03-03 15:33:36 +01:00
Léo Valque
15e80b0a78
solved conflict
2025-03-03 15:26:25 +01:00
lvalque
b99ae574d1
Clean doc autorefine snap_grid_size description
...
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
2025-02-28 11:45:47 +01:00
lvalque
05ecac919d
Clean doc autorefine return description
...
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
2025-02-28 11:45:00 +01:00
lvalque
88bad8a2e5
Clean doc autorefine
...
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
2025-02-28 11:44:23 +01:00
Léo Valque
3b29156f29
Bug solved: Shift before ceil was in the wrong direction
2025-02-25 09:41:09 +01:00
Léo Valque
5d3ec39dd1
Add more soup information in snap_polygon_soup.cpp
2025-02-24 15:25:22 +01:00
Léo Valque
20e54eb8fd
reintroduced #ifdef CGAL_LINKED_WITH_TBB
2025-02-20 09:14:01 +01:00
Léo Valque
0bbaa2a661
replace #ifdef CGAL_LINED_WITH_TBB by constexpr
2025-02-19 17:33:57 +01:00
Léo Valque
09239da179
rename snap_polygon_soup to triangle_soup_snap_rounding and fix bug in snap_polygon_soup.cpp
2025-02-19 11:36:20 +01:00
Léo Valque
139e047595
remove trailing whitespace
2025-02-17 18:14:42 +01:00
Léo Valque
9b84d4c73c
rename do_snap to apply_iterative_snap_rounding, remove trailing whitespace
2025-02-17 18:09:04 +01:00
Léo Valque
ac7bf3c45f
Doc modification of autorefine and Polygon mesh processing
2025-02-17 15:44:10 +01:00
Léo Valque
d4e66753ad
made snap polygon soup an option of autorefine_triangle_soup
2025-02-17 14:17:45 +01:00
Sébastien Loriot
06b511cc65
Merge pull request #6088 from sloriot/PMP-add_discrete_curvature
...
Add functions to compute discrete curvatures
2025-02-12 21:22:40 +01:00
Sebastien Loriot
14b83f0d3e
boost::tie -> std::tie ( #8715 )
2025-02-12 19:36:19 +01:00
Léo Valque
8079f69f8b
Add some parallellisation
2025-02-12 13:16:43 +01:00
Léo Valque
64c4fd25a9
ceil for negative rational and comments
2025-02-12 10:51:31 +01:00
Léo Valque
aef30f0e9d
Write a generic ceil function to use snap_polygon_soup with various number type; tested with EPECK et EPICK
2025-02-11 17:01:10 +01:00
Léo Valque
4d4763fa8b
Fig a bug when the scaling have a negative exponent
2025-02-07 10:15:49 +01:00
Mael Rouxel-Labbé
07d7615d91
Require a FaceGraph for boundary checks
2025-02-06 10:16:10 +01:00
Léo Valque
3dc12cd8fb
New alternative version of snap_polygon_soup for testing
2025-02-04 16:15:08 +01:00
Léo Valque
3811271150
add more verbose in snap_polygon_soup
2025-02-04 15:17:20 +01:00
Laurent Rineau
e5001d1a50
update our CMake version 3.18...3.31
...
That will suppress the warnings about `CMP0167` (from CMake 3.30):
```
CMake Warning (dev) at cmake/modules/display-third-party-libs-versions.cmake:37 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
```
2025-02-04 14:32:37 +01:00
Léo Valque
3a64fe3fcd
add number_of_iterations as a named parameter for snap_polygon_soup
2025-02-04 14:11:28 +01:00
Léo Valque
14ccffcd13
Doc, verbose and named parameter of snap_polygon_soup
2025-02-04 13:51:53 +01:00
Léo Valque
3787d4b0ac
Add snap polygon soup to PMP
2025-02-04 11:26:46 +01:00
Sébastien Loriot
107f3696dc
boost::tie -> std::tie
2025-01-24 14:20:00 +01:00
Sebastien Loriot
db45571323
refactor: remove duplicate header file inclusion ( #8692 )
...
## Summary of Changes
remove duplicate header file inclusion
## Release Management
* Affected package(s): Polygon_mesh_processing
2025-01-22 10:46:18 +01:00
Sébastien Loriot
6d20c44ccf
Merge remote-tracking branch 'cgal/6.0.x-branch'
2025-01-17 18:52:55 +01:00
zfb132
d5d01a4d32
refactor: remove duplicate header file inclusion
2025-01-15 23:34:10 +08:00
Jane Tournois
8e0ebb9a39
update status of border edges when removing a (degenerate) border face
2025-01-10 13:42:33 +00:00
Mael Rouxel-Labbé
8e3befc09a
Add tests for discrete curvatures
2025-01-10 13:11:37 +01:00
Mael Rouxel-Labbé
c418aea7c2
Document PMP/curvature.h
2025-01-10 13:11:21 +01:00
Mael Rouxel-Labbé
db297d7eff
Handle boundary vertices in angle_sum
2025-01-10 13:10:33 +01:00
Mael Rouxel-Labbé
26005e59f3
Fix compilation
2025-01-10 13:10:16 +01:00
Mael Rouxel-Labbé
6d68861f1e
Move PMP/curvature.h outside of 'internal'
2025-01-10 11:40:50 +01:00
Mael Rouxel-Labbé
d7791980d1
Move separator
2025-01-10 11:40:10 +01:00
albert-github
f5ec9b05b7
Spelling correction
...
Spelling correction
Note: we also have a similar spelling error in:
```
Surface_mesh_skeletonization/benchmark/Surface_mesh_skeletonization/mcf_scale_invariance.cpp:104: output.open("correspondance.cgal");
Surface_mesh_skeletonization/examples/Surface_mesh_skeletonization/MCF_Skeleton_example.cpp:68: output.open("correspondance-poly.polylines.txt");
Surface_mesh_skeletonization/examples/Surface_mesh_skeletonization/MCF_Skeleton_LCC_example.cpp:66: output.open("correspondance-lcc.polylines.txt");
Surface_mesh_skeletonization/examples/Surface_mesh_skeletonization/MCF_Skeleton_om_example.cpp:75: output.open("correspondance-sm.polylines.txt");
Surface_mesh_skeletonization/examples/Surface_mesh_skeletonization/MCF_Skeleton_sm_example.cpp:67: output.open("correspondance-sm.polylines.txt");
Surface_mesh_skeletonization/examples/Surface_mesh_skeletonization/simple_mcfskel_example.cpp:72: output.open("correspondance-poly.polylines.txt");
Surface_mesh_skeletonization/examples/Surface_mesh_skeletonization/simple_mcfskel_LCC_example.cpp:72: output.open("correspondance-lcc.polylines.txt");
Surface_mesh_skeletonization/examples/Surface_mesh_skeletonization/simple_mcfskel_sm_example.cpp:51: output.open("correspondance-sm.polylines.txt");
```
but as this in filenames I didn't change it.
2024-12-23 15:23:47 +01:00
Sébastien Loriot
f5f5dc7244
Merge remote-tracking branch 'cgal/6.0.x-branch' into HEAD
2024-12-23 09:40:20 +01:00
Sébastien Loriot
cb3e182284
Merge remote-tracking branch 'cgal/5.6.x-branch' into HEAD
2024-12-23 09:38:35 +01:00
Sebastien Loriot
06fa730c75
Flip it if you can't collapse it ( #8609 )
...
if a needle is also a cap, it will be handled as a needle only. But if
we can't collapse the edge, a flip will not be tried. Try the flip too.
Note that this will slow down the method as the status of a triangle is
tested twice.
Fix #8605
2024-12-23 09:34:33 +01:00
Sebastien Loriot
b55bdc0103
Fix link to replacement function ( #8657 )
...
## Release Management
* Affected package(s): `Polygon_mesh_processing`
* Issue(s) solved (if any): -
* Feature/Small Feature (if any): -
* License and copyright ownership: no change
2024-12-23 09:33:22 +01:00
Sébastien Loriot
8bc0b888b8
clean up patch and make filling lazy
2024-12-18 11:42:10 +01:00
Sébastien Loriot
dfb77dde96
add test
2024-12-18 11:42:05 +01:00
Sébastien Loriot
a6f7b3c163
WIP handle nested coplanar CC
2024-12-18 11:37:14 +01:00
Mael Rouxel-Labbé
4efaa1e9cb
Fix link to replacement function
2024-12-13 11:57:30 +01:00
Jane Tournois
30dda7ae89
add examples to the doc!
2024-12-12 14:26:24 +00:00
Mael Rouxel-Labbé
373ad84461
Improve discrete curvature implementation
2024-12-10 21:17:36 +01:00
Sébastien Loriot
078053314e
Merge remote-tracking branch 'cgal/6.0.x-branch' in master
2024-12-10 16:33:32 +01:00
Sébastien Loriot
3fa3568e6b
Merge remote-tracking branch 'cgal/5.6.x-branch' into cgal/6.0.x-branch
2024-12-10 16:32:33 +01:00
Sebastien Loriot
289a8bda49
`PMP::isotropic_remeshing()` - fix relaxation of constrained vertices ( #8604 )
...
## Summary of Changes
Constrained vertices, and constrained edges were not properly protected
during the smoothing step.
## Release Management
* Affected package(s): PMP
* Issue(s) solved (if any): fix #8388
* License and copyright ownership: unchanged
2024-12-10 16:30:25 +01:00
Sébastien Loriot
0737a8f99b
do not put all the faces of the mesh in the hash map
2024-12-10 15:58:53 +01:00
Sébastien Loriot
c3e4e32fb7
factorize cap checks
2024-12-10 15:37:53 +01:00
Sébastien Loriot
116c0ec5d9
only use one container for the next loop
...
--> make the output of the function idempotent
2024-12-10 15:18:24 +01:00
Mael Rouxel-Labbé
b24e6509fe
Merge remote-tracking branch 'cgal/master' into PMP-add_discrete_curvature
2024-12-09 11:40:20 +01:00
Mael Rouxel-Labbé
e8602e1f4e
Use modern typedefs
2024-12-07 23:50:02 +01:00
Mael Rouxel-Labbé
25cd25c477
Tiny indentation fix
2024-12-07 23:49:55 +01:00
Mael Rouxel-Labbé
a0e319e67b
Re-attach convenience overloads to their respective main function
2024-12-07 23:43:07 +01:00
Mael Rouxel-Labbé
f2299f844f
Use plural for the all-vertices function
2024-12-07 23:42:49 +01:00
Mael Rouxel-Labbé
693fd25174
Use a capital 'G'
2024-12-07 23:42:31 +01:00
Mael Rouxel-Labbé
0fe940555d
Fix namespace
2024-12-07 23:41:38 +01:00
Mael Rouxel-Labbé
e9de7e88ad
Fix test pretty much never testing envelope tests + read all formats
2024-12-07 23:34:58 +01:00
Mael Rouxel-Labbé
eb668da9ea
Misc cleaning
2024-12-07 23:34:23 +01:00
Mael Rouxel-Labbé
fda7b1ae6a
Avoid a lot of useless shape predicate calls
...
Here are some changes:
- Avoid a lot of redundant calls of is_it_a_needle / is_it_a_cap
- Do not test for cap-ness if it's already a needle
- Do not fill both ranges at the beginning, but fill
with everything: on the first round, needle-ness will
be tested, and the exit towards cap-ness will happen
- Wait for a needle to no longer be a needle, or not be
treatable to actually test cap-ness
- When the mesh is modified, do not test everything immediately,
just put them in the queue of the next iteration
Result: Fewer calls to shape predicates
- master -
needle calls = 828 668
cap calls = 803 330
- PR -
needle calls = 803 554
cap calls = 795 317
Should be fewer but two effects are balacing each other for the calls:
- much fewer calls to shape predicates (is_it_a_needle, is_it_a_cap)
by not calling until absolutely necessary (but still checking at pop time).
- when we modify the mesh, I no longer fill the CURRENT cap and needle
ranges, but the next ones. The point is to really prioritize all caps
BEFORE treating needles, whereas otherwise we would treat some needles
at the current iteration while there are still caps to treat.
So there are more iterations which add more useless calls (see below)
2024-12-07 23:31:57 +01:00
Mael Rouxel-Labbé
a4cb48a145
Fix never trying again a user-rejected cap
2024-12-07 23:29:04 +01:00
Mael Rouxel-Labbé
eb5ff9b33e
Fix collect_badly_shaped_triangles not actually filling both ranges
2024-12-07 23:28:20 +01:00
Sébastien Loriot
cac285d097
no need to redo new node propagation if it was already been done once
2024-12-06 17:19:01 +01:00
albert-github
36f6a36dac
Errors in bibliography and incorrect usage of `\f[` command
...
- The `&` in the bibliography has to be escaped
- the doxygen command `\f[` should not be used to directly change the environment, for this the doxygen command `\f{` exists.
2024-12-02 15:48:48 +01:00
Sébastien Loriot
0b3c27e584
swap the parameters also here
2024-11-21 09:04:17 +01:00
Sébastien Loriot
41d37ac2a9
split badly shaped triangle check and delay the check calls
2024-11-20 09:40:13 +01:00
Sébastien Loriot
b60b203c56
add missing cap collection in case of non-collapsed edge
2024-11-20 09:11:48 +01:00
Jane Tournois
21e1ff113a
vertex is constrained if NOT allowed to move
2024-11-18 16:17:19 +01:00
Sébastien Loriot
c9c1770c18
in case an edge is both a cap and a needle but that is not collapsable try to flip
2024-11-14 11:54:48 +01:00
albert-github
1320a1d497
Spelling correction
...
Spelling correction
2024-11-14 10:22:43 +01:00
Jane Tournois
7462b70bec
remove unused
2024-11-12 14:01:30 +01:00