Commit Graph

109881 Commits

Author SHA1 Message Date
Laurent Rineau 4bf1c438af Add a tool to list non triangulated off files 2024-04-26 16:10:23 +02:00
Laurent Rineau 612d6e3f59 cosmetic change 2024-04-26 16:10:23 +02:00
Laurent Rineau cc5fdfb7d0 remove CGAL::cpp17, useless now that CGAL requires C++17 2024-04-26 16:10:23 +02:00
Laurent Rineau 56054ce7d9 fix io_signature issue 2024-04-26 16:10:23 +02:00
Laurent Rineau 70c73237e7 reimplement TDS_3::is_edge (speed-up by a factor 7) 2024-04-26 16:10:23 +02:00
Laurent Rineau 9194bb0bca speed up incident_cells_threadsafe 2024-04-26 16:10:23 +02:00
Laurent Rineau 05d1cfa9b3 speed-up is_edge with function_output_iterator. 2024-04-26 16:10:23 +02:00
Laurent Rineau 1ee8152353 patch to speed up `incident_cells` in 3D 2024-04-26 16:10:23 +02:00
Laurent Rineau ad30644ed5 add CGAL::Scope_exit
Example of use:

```c++
    Scope_exit guard{[&] {
      for(auto v : region_vertices) {
        v->clear_mark(Vertex_marker::REGION_BORDER);
        v->clear_mark(Vertex_marker::REGION_INSIDE);
      }
    }};
```

with CTAD, or:

```c++
    auto cleanup_tds_data = make_scope_exit([&] {
      for(auto c : cells) {
        c->tds_data().clear();
      }
    });
```
2024-04-26 16:10:23 +02:00
Jane Tournois fad15d129b cleaning 2024-04-26 15:26:59 +02:00
Jane Tournois 1a4fd5ae04 use midpoint_with_info() in density_along_segment() 2024-04-26 15:26:42 +02:00
Laurent Rineau 5c636823ba TDS::is_valid add a check of number_of_cells() 2024-04-26 15:08:05 +02:00
Laurent Rineau ed26ee0ab1 fix missing include of <cstdint.h> 2024-04-26 14:52:22 +02:00
Laurent Rineau ca90296877 macros to support C++20 concepts conditionally
(used in CDT_3 only, for the moment)
2024-04-26 14:48:19 +02:00
Laurent Rineau ac47f30cd8 experiment adding tuple-like support for Segment_3 2024-04-26 14:44:37 +02:00
Laurent Rineau cb933b1391 make Unique_hash_map movable 2024-04-26 14:42:36 +02:00
Laurent Rineau 3148e8a6fe make Circulator_from_container somewhat compatible with C++20 ranges 2024-04-26 14:41:48 +02:00
Laurent Rineau cfb8722861 add comments on Compare_angle_3 2024-04-26 14:37:21 +02:00
Laurent Rineau 4adf7e786b fix Compare_angle_3 with six points 2024-04-26 14:37:21 +02:00
Laurent Rineau 15d4d788e6 add Compare_angle_3 with 6 points 2024-04-26 14:37:04 +02:00
Jane Tournois 987dffb615 remove comment 2024-04-26 14:29:44 +02:00
Jane Tournois c954e36591 Improve Adaptive_remeshing_sizing_field
* use 2 kd_trees to find nearest neighbors, either on surfaces (kd_tree_2)
or inside volume (kd_tree_3)
* insert more points in the kd-trees, at centroids and midpoints, to densify the
point sets and be more robust to extreme cases (for example when there are no
vertices with dimension 3)
* interpolate sizing values among nearest neighbors
2024-04-26 14:29:25 +02:00
Jane Tournois 5f21b2c01f add midpoint_with_info() to avoid duplicate code 2024-04-26 14:24:04 +02:00
Laurent Rineau f53e169baf fix include of <cstdint> 2024-04-26 14:09:41 +02:00
Laurent Rineau ee07b44d67 add a missing include 2024-04-26 14:05:33 +02:00
Laurent Rineau f39b90670b Fix CMake warning: remove usage of VTK_USE_FILE
Backport: master, 5.5.x, 5.4.x
2024-04-26 13:54:44 +02:00
Laurent Rineau bc76d8cbda add CGAL_CAN_USE_CXX20_FORMAT macro for <format> support (C++20) 2024-04-26 13:44:57 +02:00
Laurent Rineau 877e8322d2 fix oformat 2024-04-26 13:42:48 +02:00
Laurent Rineau 4c75012cca oformat(x, tag) passed the tag value to the Output_rep
That allows to pass an integral offset to the displayed time stamps.

The goal is to set it to -1, to display vertices IDs that are identical
to the input vertices indices of the `Surface_mesh``.
2024-04-26 13:29:31 +02:00
Laurent Rineau c2fe3273ff fix the std::formatter for Output_rep 2024-04-26 13:26:50 +02:00
Laurent Rineau 6096748402 Allow to compile with Epeck 2024-04-26 13:23:51 +02:00
Laurent Rineau 1ca6c17a2a use boost::unordered_flat_map to optimize Polyline_constraint_hierarchy_2 2024-04-26 13:13:04 +02:00
Laurent Rineau f219cdff53 minor tweak with constexpr in CT_2 2024-04-26 13:13:04 +02:00
Laurent Rineau 8e1744fbc1 fix constness 2024-04-26 13:12:05 +02:00
Laurent Rineau 952d34c6ea cosmetic changes (indent, spaces, naming) 2024-04-26 13:09:05 +02:00
Andreas Fabri 53b438eeeb STL_extension: Add parameter for value type to Prevent_deref 2024-04-26 13:08:06 +02:00
Laurent Rineau e313fdc697 Add Compare_xy_2 to TriangulationTraits_2
This enables customization of projection traits for CDT_2s and
facilitates unification with the predicates utilized in
3D triangulations.
2024-04-26 12:13:35 +02:00
Laurent Rineau 98f1e53020 Improve I/O
- `IO::oformat` can display triangulations vertex handles
  with point, using `With_point_tag{}` as second argument,

- improve the compatibility with C++20 `<format>`: now the precision
  can be specified in the format string.

Backport: master
2024-04-26 12:05:08 +02:00
Laurent Rineau 0f8e3eb955 add contexts_range(T va, T vb
a range for `contexts_begin` and `contexts_end` functions.
2024-04-26 12:02:21 +02:00
Jane Tournois 17736e925d compute lower and upper size bounds at edge midpoint 2024-04-26 11:52:01 +02:00
Jane Tournois e84b01b4a2 density is 1/sizing to have mass = length/sizing a quantity with no dimension
and rename function to density
2024-04-26 11:36:59 +02:00
Jane Tournois 97b5be8c35 move max_dimension_index() higher in file 2024-04-26 11:34:04 +02:00
Jane Tournois 4024802646 add missing return type 2024-04-26 11:32:04 +02:00
Jane Tournois 2563f90ee1 fix dump functions used inside debug macro 2024-04-26 11:29:39 +02:00
Laurent Rineau 15349f0bda simplify the code for MSVC 2017 (compiler bug_ 2024-04-26 10:39:41 +02:00
Jane Tournois 9567710cff add commented dump 2024-04-26 10:34:11 +02:00
Jane Tournois e31281733c add boundary info to collapsibility test 2024-04-26 10:28:59 +02:00
Jane Tournois b2ac9f476f add timer 2024-04-26 10:18:20 +02:00
Sébastien Loriot 4525eeb988 do not modify the map if not the default one 2024-04-25 19:29:48 +02:00
Sébastien Loriot be81f15b95 update description: it is also an input parameter 2024-04-25 18:35:25 +02:00