Commit Graph
1190 Commits
Author SHA1 Message Date
Sebastien Loriot f60daf05e4 Mesh_2: fix degenerate cases (#9290)
## Summary of Changes

This PR fixes the error reported in issue #781. The main two changes
are:

- in `Refine_edges.h`: allow the refinement point of a constrained edge
to be an existing close encroaching vertex,
- in `Refine_faces.h`: skip tiny bad faces when their bbox are smaller
than a few ulp.

## Release Management

* Affected package(s): Triangulation_2, Mesh_2
* Issue(s) solved (if any): fix #781
* Feature/Small Feature (if any):
* Link to compiled documentation (obligatory for small feature) [*wrong
link name to be changed*](httpssss://wrong_URL_to_be_changed/Manual/Pkg)
* License and copyright ownership: maintenance by GeometryFactory, now
copyright change
2026-02-12 15:01:59 +01:00
Valque Léo aa6147c2a7 Merge branch 'master' into T2-do_not_insert_duplicates-GF 2026-02-02 17:50:56 +01:00
Laurent Rineau 2ee9b47a16 better debug messages 2026-01-20 17:58:58 +01:00
Laurent Rineau 6626a536ae Refine_edges refinement point: allow snapping to an existing vertex 2026-01-20 17:13:55 +01:00
Laurent Rineau 2134255b16 Mesher_level: detect infinite loops and abort 2026-01-20 17:13:02 +01:00
Attaullah Ansari 9dd424409b Fix typos in comments, documentation, and strings 2026-01-04 18:04:10 +05:30
Sébastien Loriot 5b771b794f Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2025-12-26 12:13:31 +01:00
Mael Rouxel-Labbé 2ca057bb2b Make context() const
The documentation already advertised a const function.
2025-12-23 11:39:30 +01:00
lvalque 3bffb348d8 Merge branch 'main' into T2-do_not_insert_duplicates-GF 2025-12-19 10:36:07 +01:00
lvalque 91ac6dbc60 Apply suggestions 2025-12-01 16:41:50 +01:00
lvalque 6321dc5984 Correct template parameter not correctly deduced 2025-10-14 11:45:47 +02:00
lvalque af06bf99d7 Correct a typo in insert_constraints 2025-10-09 11:08:20 +02:00
lvalque 212e2f63a7 modify check_duplicates for Constrained_triangulation_plus 2025-10-09 11:06:48 +02:00
lvalque f3a809a4c2 check_duplicates became a template parameter for insert_constraints(t,begin,end) 2025-10-09 11:06:13 +02:00
lvalque d71f136d7d transform check_duplicates to a template parameter to be used at compile time 2025-10-07 18:12:09 +02:00
lvalque 0102c8a6bf Remove unused attribut and correct indendation 2025-10-06 15:59:15 +02:00
lvalque 8bcf91de45 Introduce functions insert_unique_constraints 2025-10-06 15:56:59 +02:00
Sebastien Loriot 4c97f3ea85 Dt2 remove: replace thread_local vectors by arrays (#9060)
## Summary of Changes

Fix issue #9058.

In `CGAL::Delaunay_triangulation_2`, replace thread_local vectors by
`std::array` on the stack.

## Release Management

* Affected package(s): Triangulation_2
* Issue(s) solved (if any): fix #9058
* License and copyright ownership: no change, maintenance by
GeometryFactory
2025-09-22 12:06:33 +02:00
Laurent Rineau e4bdc469b1 🤦
To store from 0 to 7... your need size==8.
2025-09-11 14:57:05 +02:00
Laurent Rineau 4e455a510c Dt2 remove: :replace thread_local vectors by arrays 2025-09-09 20:04:34 +02:00
Sébastien Loriot 72cfcc4156 Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2025-09-03 16:57:03 +02:00
Sébastien Loriot c0de2cf4a2 move to T2
try fixing CI
2025-08-29 09:55:55 +02:00
Sébastien Loriot 2ae34a22ba Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2025-08-13 18:09:36 +02:00
Sébastien Loriot bc0000919f Merge remote-tracking branch 'cgal/6.0.x-branch' into 'cgal/master' 2025-08-05 16:28:05 +02:00
Andreas Fabri 8d4877b025 Triangulation_2: Document degree() 2025-07-09 15:09:42 +01:00
Andreas Fabri c9303c7bc3 cast from int to double 2025-07-09 13:22:39 +01:00
Andreas Fabri c8915cf19e Add type to enum 2025-07-08 08:57:28 +01:00
Andreas Fabri 1ad06e9538 Deal with 2D and other move_if function 2025-06-30 13:15:35 +01:00
Laurent Rineau 161a313109 fix the move semantic of Constrained_triangulation_plus_2
The comparison functor passed to the constraints hierarchy has a
pointer to the `Constrained_triangulation_plus_2` that contains it.
That means the defaulted move constructor and move assignment operator of `Polyline_constraint_hierarchy_2` cannot be used to
implement the move constructor and move assignment operator of
`Constrained_triangulation_plus_2`.

Add a special constructor for `Polyline_constraint_hierarchy_2`, that is
usee to move the hierarchy and reassign the comparison operator.
2025-06-04 00:51:02 +02:00
Laurent Rineau b28a6bc7f6 workaround for MSVC 2019
See https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-6.1-Ic-155/Constrained_triangulation_3/TestReport_Christo_MSVC-2019-Community-Release.gz
2025-05-16 16:46:34 +02:00
Laurent Rineau 4b029e69bd Merge branch 'CGAL:master' into Triangulation_3-CDT_3-lrineau 2025-05-13 17:14:39 +02:00
Laurent Rineau fa7a62bd69 fix static_assert(std::is_nothrow_move_assignable<CDT_plus_2> 2025-04-29 11:52:40 +02:00
Laurent Rineau d3fe6989fa fix memory leaks
The move-assignment operator was wrong.
2025-04-28 17:07:43 +02:00
Guillaume Damiand 219ea871d7 copy the parts of gsoc2024-basic_viewer_glfw-tgrillon that concern only the qt basic viewer 2025-04-17 15:55:54 +02:00
Sébastien Loriot a838073ec7 Merge remote-tracking branch 'cgal/5.6.x-branch' into cgal/6.0.x-branch 2025-03-31 15:31:19 +02:00
Andreas Fabri 69df3ae5a5 T2: avoid maybe uninitialized warning 2025-03-23 21:50:14 +01:00
Laurent Rineau 6b97b34a10 Merge 'cgal/master' into Triangulation_3-CDT_3-lrineau 2025-03-21 18:01:23 +01:00
Andreas Fabri f557b1ca6e T2: avoid maybe uninitialized warning 2025-02-24 07:31:43 +00:00
albert-github cc9ab04a27 Spelling correction
Spelling correction
2025-02-19 11:29:09 +01:00
Sébastien Loriot bd358d01fc one extra tmp disable 2025-02-14 13:15:01 +01:00
Andreas Fabri db3843bf63 Add #include <stack> 2025-02-13 07:34:28 +00:00
Sébastien Loriot 043becfe7f Merge pull request #8273 from lrineau/CGAL-followup_PR_8170-lrineau
Improvement backports from CDT_3 branch (Follow-up to PR #8170)
2025-02-12 19:43:35 +01:00
Andreas Fabri 98b6cf398d change iterator category to bidirectional 2025-02-12 17:48:55 +00:00
Laurent Rineau 9572c603d5 fix the static assertions about nothrow-movable
```
/mnt/testsuite/include/CGAL/Conforming_constrained_Delaunay_triangulation_3.h:543:23: error: static assertion failed
  543 |   static_assert(CGAL::is_nothrow_movable_v<CDT_3_impl>);
      |                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2025-02-12 13:53:18 +01:00
Laurent Rineau a2571bbab8 Merge remote-tracking branch 'lrineau/CGAL-followup_PR_8170-lrineau' into Triangulation_3-CDT_3-lrineau 2025-02-11 18:26:52 +01:00
Laurent Rineau d837dbde21 fix for STL debug mode
It is invalid to try to detect if an iterator is singular or value-initialized.
The only operations allowed with value-initialized iterators are:
  - copy the iterator, or
  - destroy or assign the iterator.

Comparisons like `vertex_it == Vertex_it{}` are not allowed.
2025-01-30 17:51:20 +01:00
Laurent Rineau 571c2ccadc fix compilation errors with C++>=20, or g++12.2.0 2025-01-30 17:39:32 +01:00
Laurent Rineau c6d6d673af fix compilation error with gcc-12.2 2025-01-29 16:12:04 +01:00
Laurent Rineau 96dbd55463 extra fix for MSVC 2017 in Constrained_Delaunay_triangulation_2 2025-01-29 14:27:43 +01:00
Laurent Rineau b701981572 fix another compilation error
VC++ 19.16 thought there was an ambiguous call to `operator==`
between `skip_iterator` and `skip_iterator` in the internals of `boost::iterator_adaptor` (yet another matching bug) of VC++ 19.16).

I solved it by using the more modern `boost::stl_interfaces::iterator_interface` from Boost.STLintface (Boost>=1.74).
2025-01-28 15:27:48 +01:00