Commit Graph

2570 Commits

Author SHA1 Message Date
Laurent Rineau ce6e3a121f Merge branch 'releases/CGAL-4.10-branch' into releases/CGAL-4.11-branch 2017-10-23 16:55:54 +02:00
Laurent Rineau 6be9fcab9d Forbid the use of CGAL_MESH_3_USE_RELAXED_HEAP
That code using a Boost relaxed heap is buggy. Let's warn the developer
that he/she must not use it.
2017-10-19 15:14:01 +02:00
Laurent Rineau 6178c04cf1 Fix also restore_infinite_cell
Thanks @MaelRL for the suggestion.

https://github.com/CGAL/cgal/pull/2541#issuecomment-337278638
2017-10-18 17:00:25 +02:00
Laurent Rineau 9a7b48d693 Fix a perturber bug
The `facet_surface_center` of facet was not always restored correctly,
after an aborted move, and that eventually led to use of uninitialized
memory... and a crash.
2017-10-17 09:48:45 +02:00
Laurent Rineau c33d1b6dd9 Merge branch 'releases/CGAL-4.11-branch' 2017-09-25 16:48:41 +02:00
Laurent Rineau 412927917b Bug-fix for Mesher::one_step()
In issue #2453:
> I am trying to mesh in the demo a given Polyhedron (the problem is the same with Surface_mesh with a very small tetrahedron size, and the output mesh is always more or less the same, with very few simplices compared to what I expect.

Actually, the demo uses a loop:
```C++
while( !mesher->is_algorithm_done() )
  mesher->one_step();
```

Because of that bug in `one_step()`, `is_algorithm_done()` could return
`true` even before the cells mesher level has scanned the triangulation
for bad cells. That will be fixed, now.
2017-09-22 16:27:46 +02:00
Laurent Rineau 037cba3fae Merge pull request #2336 from maxGimeno/Detect_features-GF
PMP: Detect features
2017-09-18 14:29:55 +02:00
Maxime Gimeno 6f4b3c0c93 Fix travis error 2017-08-28 14:36:30 +02:00
Jane Tournois 1c7e171940 call get(property map) outside of function 2017-08-22 17:05:33 +02:00
Jane Tournois 1ce7ea7211 fix compilation error 2017-08-21 13:00:18 +02:00
Sebastien Loriot 97b8782a27 Merge branch 'master' into Detect_features-GF 2017-08-18 16:34:29 +02:00
Jane Tournois 126a85d863 use the fact that vertex_incident_pmap is an LValuePropertyMap
and add a missing 'const'
2017-08-18 16:14:22 +02:00
Jane Tournois 9eb349b472 minor indentation issues 2017-08-17 17:22:19 +02:00
Maxime Gimeno 43ff0d092c Implementation review Jane and sebastien 2017-08-11 15:30:03 +02:00
Maxime Gimeno 723492def1 Use existing named_parameters and vertex_incident_patches becomes lvaluepmap, 2017-08-10 15:16:27 +02:00
Maxime Gimeno 7d5226bba3 Another review pass. 2017-08-10 11:22:21 +02:00
Maxime Gimeno 1d497d09ff Fix warnings and error 2017-08-10 09:37:37 +02:00
Maxime Gimeno ffd95ac3a0 Add a line in the TriangleMesh definition of facets_in_complex_3_to_triangle_mesh() 2017-08-09 10:31:04 +02:00
Maxime Gimeno 56cb0a66a3 Changes after review 2017-08-09 10:31:04 +02:00
Maxime Gimeno 088934730b changes in the doc. 2017-08-09 10:31:04 +02:00
Maxime Gimeno 603ae0d9c6 Rename file to match doc 2017-08-09 10:31:04 +02:00
Maxime Gimeno bd425f35e6 Move doc file to subdir IO 2017-08-09 10:31:04 +02:00
Maxime Gimeno 593d7f6691 Use PMP::polygon_soup_to_polygon_mesh() in output_c3t3_to_facegraph() and adapt doc. 2017-08-09 10:31:04 +02:00
Maxime Gimeno d57be1d856 Add documentation and update changes.html 2017-08-09 10:31:04 +02:00
Maxime Gimeno fa598b70ab Add a file and a test to export a c3t3 to a facegraph. 2017-08-09 10:30:19 +02:00
Maxime Gimeno f670ffe4e2 detect_surface_patches uses connected_components 2017-08-09 10:24:48 +02:00
Maxime Gimeno 1fe1e21bb6 Replace maximum_surface_patch by first_index. 2017-08-07 13:32:02 +02:00
Maxime Gimeno 1bad0e7202 Use edges instead of halfedges for edge_is_feature_t and map 2017-08-07 11:39:07 +02:00
Maxime Gimeno d588c55bbb Make functions free functions and wright doc 2017-08-04 15:06:41 +02:00
Jane Tournois 3592718470 remove TriangleAccessor_3 from the doc of Polyhedral_mesh_domain_3 2017-08-03 17:16:57 +02:00
Jane Tournois d826147256 remove TriangleAccessor from polyhedral_mesh_complex 2017-08-03 17:15:43 +02:00
Jane Tournois 56cab9458c remove extra typename 2017-08-03 16:09:52 +02:00
Jane Tournois 0c2999da30 use forward declaration include 2017-08-03 16:09:52 +02:00
Jane Tournois 77896f38fe use the AABB_tree internal to Side_of_triangle_mesh
this avoids incompatibility issues,
and simplifies the code in Polyhedral_mesh_domain_3
2017-08-03 16:09:52 +02:00
Jane Tournois 862300b609 remove extra *
and improve indentation
2017-08-03 16:09:52 +02:00
Jane Tournois ee8eda8a16 TriangleAccessor is not needed anymore 2017-08-03 16:09:52 +02:00
Jane Tournois 9e388204e8 use Side_of_triangle_mesh in Polyhedral_mesh_domain_3 2017-08-03 16:09:52 +02:00
Maxime Gimeno 95dfae314b Rename file 2017-08-02 16:26:53 +02:00
Laurent Rineau 917781929b Merge pull request #2279 from janetournois/Polyhedron_demo_-add_mesh_surface_w_border_in_closed_domain-GF
Qualify call of is_empty() as CentOS6-CXX11 sees an ambiguity with struct std::is_empty
2017-07-25 18:17:10 +02:00
Laurent Rineau 0ec094d1e0 Bug-fix: fix a bug that could lead to a size close to 0
The bug and the fix are known for six weeks (found while working on
another project):

> commit 15d1f864c4bb68cc9e267c3be3610296e5fa9212
> Author: Laurent Rineau <laurent.rineau@cgal.org>
> Date:   Fri Feb 17 12:17:18 2017 +0100
>
>     Refactoring of Sizing_field_with_aabb_tree (API breakage too)

but we forgot to include the fix in CGAL.
2017-07-21 17:29:29 +02:00
Laurent Rineau 99bfe4b200 Fix debug code, after the BGLization 2017-07-21 17:18:51 +02:00
Laurent Rineau 5f198bca9c Bug-fix: fix a bug that could lead to a size close to 0
The bug and the fix are known for six weeks (found while working on
another project):

> commit 15d1f864c4bb68cc9e267c3be3610296e5fa9212
> Author: Laurent Rineau <laurent.rineau@cgal.org>
> Date:   Fri Feb 17 12:17:18 2017 +0100
>
>     Refactoring of Sizing_field_with_aabb_tree (API breakage too)

but we forgot to include the fix in CGAL.
2017-07-21 16:49:40 +02:00
Laurent Rineau 1f4ee1d07a Reorganize the binary I/O tests
Skip the reading of the existing binary file, for
  - 32bits platforms (actually any non-64bits platform),
  - and big endian platforms.
... because we know the binary file is incompatible (for the moment).
2017-07-19 10:46:35 +02:00
Laurent Rineau 2b79306e2d Fix a compilation error
```
/usr/bin/c++   -DCGAL_TEST_SUITE -DCGAL_USE_GMP -DCGAL_USE_MPFR -DCGAL_USE_ZLIB -I/home/cgal_tester/build/src/cmake/platforms/CentOS7/test/Mesh_3/../../../AABB_tree/include -I/home/cgal_tester/build/src/cmake/platforms/CentOS7/test/Mesh_3/../../include -I/home/cgal_tester/build/src/cmake/platforms/CentOS7/test/Mesh_3 -I/home/cgal_tester/build/src/cmake/platforms/CentOS7/include -I/mnt/testsuite/include  -Wall -frounding-math   -o CMakeFiles/test_c3t3_io.dir/test_c3t3_io.cpp.o -c /home/cgal_tester/build/src/cmake/platforms/CentOS7/test/Mesh_3/test_c3t3_io.cpp
In file included from /usr/include/boost/assert.hpp:50:0,
                 from /usr/include/boost/archive/archive_exception.hpp:20,
                 from /usr/include/boost/multi_index/detail/index_node_base.hpp:21,
                 from /usr/include/boost/multi_index/detail/node_type.hpp:23,
                 from /usr/include/boost/multi_index/detail/index_base.hpp:21,
                 from /usr/include/boost/multi_index/detail/base_type.hpp:21,
                 from /usr/include/boost/multi_index_container.hpp:33,
                 from /usr/include/boost/bimap/detail/bimap_core.hpp:34,
                 from /usr/include/boost/bimap/bimap.hpp:61,
                 from /mnt/testsuite/include/CGAL/Mesh_complex_3_in_triangulation_3.h:39,
                 from /home/cgal_tester/build/src/cmake/platforms/CentOS7/test/Mesh_3/test_c3t3_io.cpp:4:
/home/cgal_tester/build/src/cmake/platforms/CentOS7/test/Mesh_3/test_c3t3_io.cpp: In member function 'bool Test_c3t3_io<Mesh_domain>::operator()(const char*) const':
/home/cgal_tester/build/src/cmake/platforms/CentOS7/test/Mesh_3/test_c3t3_io.cpp:387:43: error: 'type name' declared as function returning a function
     assert(CGAL::Get_io_signature<C3t3>()() ==
                                           ^
```
2017-07-19 10:45:44 +02:00
Laurent Rineau 2ef17adaf0 Extend the test to compare with reference files
That way, if the format changes, the test will detect the change.
2017-07-18 15:53:21 +02:00
Laurent Rineau caa90ff5b5 Update the test to check that the signature does not change 2017-07-18 14:40:37 +02:00
Laurent Rineau aa85aea097 Fix io_signature for Mesh_3 (since the weighted point rework) 2017-07-18 14:40:10 +02:00
Laurent Rineau ceec6140ba Merge pull request #1884 from lrineau/Mesh_3-Polyhedral_complex_mesh_domain_3-GF
New class of MeshDomainWithFeatures_3, from a polyhedral complex
2017-07-17 16:28:27 +02:00
Laurent Rineau 78f1988747 Merge pull request #2247 from lrineau/Surface_mesher-cleanup_after_Weighted_point_3-lrineau
Surface mesher: cleanup files after the move to Weighted_point_3
2017-07-17 12:24:03 +02:00
Laurent Rineau 871bba21f6 Merge pull request #2212 from MaelRL/Periodic_3_Regular_triangulation_3-APelle
Add periodic regular triangulations
2017-07-17 12:23:54 +02:00