Sébastien Loriot
efc0c525e8
include non-deprecated header
2021-01-15 10:02:00 +01:00
Laurent Rineau
37f85e7702
Merge pull request #5209 from janetournois/Mesh_3-debug_global_optimizers-jtournois
...
Mesh_3 global optimizers - improve projection to surface
2020-12-09 14:58:56 +01:00
Jane Tournois
2d73ef361e
remove wrong assertions
...
when v has dimension 3, its incident cells can be either all inside
or all outside the complex
2020-12-04 17:18:04 +01:00
Jane Tournois
232cf10af8
remove unused code
2020-12-04 10:40:42 +01:00
Mael Rouxel-Labbé
35fa50213a
Avoid copies in Mesh_triangulation_3's trivial functions
...
These exist because of P3M3
2020-12-03 12:25:37 +01:00
Maxime Gimeno
5ee03985bf
Fix atomic wrong function
2020-11-30 11:37:16 +01:00
Jane Tournois
0ed6aca5a4
replace get_closest_point() by get_closest_triangle()
...
to use this function with Periodic_3_mesh_3
2020-11-27 13:04:06 +01:00
Jane Tournois
9666b3cb73
replace PCA of points by PCA of triangles
...
to make projection more precise and avoid moving a point inside a
protecting ball
2020-11-26 16:25:55 +01:00
Sébastien Loriot
93d62b969c
add forward declaration
...
File_medit.h is included by Mesh_complex_3_in_triangulation_3_base.h
2020-08-18 14:09:06 +02:00
Jane Tournois
1e42f4c9d4
rename IO functions for MEDIT format and a Triangulation_3
2020-08-18 11:16:58 +02:00
Jane Tournois
0a7d8cfd25
add an example with IO for a .mesh file
2020-08-18 10:42:20 +02:00
Laurent Rineau
25eeff801b
Fix a warning
...
```
.../CGAL/Mesh_3/C3T3_helpers.h:1249:14: warning: ‘*((void*)& surface +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
1249 | return surface;
| ^~~~~~~
```
2020-07-22 12:29:55 +02:00
Laurent Rineau
251074ad54
Use an API compatible with boost::optional and std::optional
2020-07-22 12:29:39 +02:00
Laurent Rineau
72d280fdd9
Merge pull request #4803 from janetournois/Tet_remeshing-from_c3t3_input-jtournois
...
Tetrahedral remeshing from C3T3
2020-07-08 16:24:42 +02:00
Jane Tournois
612d6772b9
operator* between enum and floating type is deprecated, fix warning
2020-07-07 11:13:16 +02:00
Jane Tournois
5b474e0075
replace deprecated std::not1 by std::not_fn
...
std::not1 is deprecated in C++17 and removed from C++20
+ add a C++17 macro in config.h
2020-07-07 10:49:58 +02:00
Laurent Rineau
4d1d4e51eb
Merge pull request #4809 from lrineau/Mesh_3-move_semantic_for_c3t3-GF
...
Add move-semantic for c3t3, and a test
2020-07-03 16:21:27 +02:00
Jane Tournois
2a4b4a2a10
set the Surface_patch_index also in the infinite cell
...
otherwise facet and its mirror don't have the same patch index
2020-07-03 07:35:20 +02:00
Laurent Rineau
36fd23d27c
Fix the move-constructor: `far_vertices_` was forgot
2020-07-02 16:50:38 +02:00
Jane Tournois
460b1f29a6
Merge branch 'master' into Tet_remeshing-from_c3t3_input-jtournois
...
# Conflicts:
# Tetrahedral_remeshing/include/CGAL/Tetrahedral_remeshing/internal/tetrahedral_adaptive_remeshing_impl.h
2020-07-01 08:01:05 +02:00
Laurent Rineau
07eacf5231
Merge pull request #4795 from janetournois/Mesh_3-fix_optimisers_parallel-jtournois
...
Mesh_3 - fix parallel optimisers
2020-06-30 16:38:05 +02:00
Jane Tournois
40668a297e
fix protection of parallel code
2020-06-29 07:07:13 +02:00
Jane Tournois
7740686d78
remove trailing whitespace
2020-06-26 15:54:17 +02:00
Jane Tournois
2a3dba9156
make build_triangulation() more generic with Surface_patch_index instead of int
...
this is necessary to be able to remesh a C3t3 with a Surface_patch_index that
is not convertible to `int`
It is the case with meshes generated from images, which often use
std::pair<Subdomain_index, Subdomain_index>
2020-06-26 15:53:02 +02:00
Jane Tournois
615ac14086
protect incident_cells_threadsafe with macro
...
Periodic_3_mesh_3 does not have an implementation of these functions
because it does not have a parallel implementation
2020-06-26 15:51:15 +02:00
Laurent Rineau
5572d9dba8
Add move-semantic for c3t3, and a test
2020-06-24 10:59:19 +02:00
Laurent Rineau
bd7d3c498f
Merge pull request #4786 from lrineau/Mesh_3-fix_compilation_error_MSVC2015-GF
...
Continue workaround for MSVC2015
2020-06-23 18:49:58 +02:00
Jane Tournois
d4b7af22ba
use tr_.try_lock_and_get_incident_cells()
...
and remove a "todo" of CJ
2020-06-19 13:31:52 +02:00
Jane Tournois
7cd18cd659
unlock after the move, even if there is no topological change
...
to avoid making changes with another thread
2020-06-19 13:31:50 +02:00
Jane Tournois
c6a922c9dc
fix Facet_updater parallel
...
`vertex_to_proj` was not locked and this was causing seg faults
2020-06-19 13:31:49 +02:00
Laurent Rineau
113c3d1d6f
Continue woraround for MSVC2015
...
That is a followup to commit 5fbaaa9e42
from PR #4468 .
I also chose a better name `is_null` instead of
`compare_weighted_circumcenter`.
2020-06-15 15:56:28 +02:00
Laurent Rineau
871c97273a
Merge pull request #4496 from lrineau/CGAL-move_semantic_for_triangulations-GF
...
Add move-semantic to Compact_container and Triangulations
2020-06-03 16:23:22 +02:00
Laurent Rineau
a828cb0d06
Merge pull request #4620 from janetournois/Tetrahedral_remeshing-new-jtournois
...
Tetrahedral remeshing - new package
2020-06-03 16:23:17 +02:00
Sébastien Loriot
4dda7b6c80
update license of c3t3 related files
...
a proper package must be created in a later release
2020-05-27 15:53:05 +02:00
Laurent Rineau
dcc4fb1cc1
Merge remote-tracking branch 'cgal/master' into CGAL-move_semantic_for_triangulations-GF
...
# Conflicts:
# STL_Extension/include/CGAL/Compact_container.h
2020-05-20 09:46:26 +02:00
Sébastien Loriot
7c4586be1b
Merge remote-tracking branch 'cgal/releases/CGAL-5.0-branch'
2020-05-12 16:59:02 +02:00
Sébastien Loriot
fb83386f44
Merge remote-tracking branch 'cgal/releases/CGAL-4.14-branch'
2020-05-12 16:58:32 +02:00
Jane Tournois
9d194e3814
add missing includes
2020-05-06 15:18:57 +02:00
Jane Tournois
28a9cb150a
replace std::set<Vertex_handle> with std::array<Vertex_handle>
...
for facets vertices
this should be a lot more efficient
2020-05-06 15:11:06 +02:00
Laurent Rineau
3951c38637
Fix UBSAN error: do not bind reference to null pointer
...
Equivalent to #4683
2020-05-04 18:54:19 +02:00
Jane Tournois
8ec09f40fc
remove dependency on Skin_surface_3
...
by replacing Triangulation_incremental_builder_3 by
build_triangulation() from tet_soup_to_c3t3.h
(which is part of Mesh_3 as C3T3)
2020-05-04 16:09:27 +02:00
Jane Tournois
977185466a
fix .mesh reader
...
- fix order of vertices depending on parity of i
- add infinite facets to incident cells map before assigning neighbors
2020-04-22 09:34:46 +02:00
Laurent Rineau
fe1f731e22
Fix timestamps
2020-04-21 17:08:57 +02:00
Maxime Gimeno
5b2d46cfa0
Fixes for min/max
2020-04-21 12:04:45 +02:00
Maxime Gimeno
50766d9d03
Fixes for min/max
2020-04-21 11:52:56 +02:00
Maxime Gimeno
e9d41d7b7d
Fixes for min/max
2020-04-21 11:38:37 +02:00
Jane Tournois
cf58a08a55
Merge branch 'master' into Tetrahedral_remeshing-new-jtournois
2020-04-20 06:24:36 +02:00
Jane Tournois
e985f03817
initialize time stamp with -1 in Mesh_vertex_base_3
...
the time stamper checks whether it is -1 or not,
with -1 as default value.
It was not initialized so the behaviour was not as expected.
Similar to what is done in 0e9389b9fe0ad90aaa30ba5d634824d59c7f804d
for Mesh_cell_base_3
2020-04-17 14:05:37 +02:00
Sebastien Loriot
98fafe4ef1
Merge pull request #4514 from MaelRL/CGAL-Fix_warnings-GF
...
Fix (some) testuite warnings
2020-04-16 18:15:11 +02:00
Jane Tournois
395621a5fa
initialize time stamp with -1 in Mesh_cell_base
...
the time stamper checks whether it is -1 or not,
with -1 as default value.
It was not initialized so the behaviour was not as expected.
2020-04-16 16:40:50 +02:00