Commit Graph

1258 Commits

Author SHA1 Message Date
Laurent Rineau 2e7d96f87e Merge pull request #1934 from lrineau/Mesh_3-improve_Protect_edges_sizing_field-GF
Improve/fix Mesh_3/Protect_edges_sizing_field.h
2017-03-02 16:55:24 +01:00
Laurent Rineau 366ddb9513 Merge pull request #1939 from lrineau/Mesh_3-fix_determinism-GF
Fix non-determinism!
2017-03-02 16:54:50 +01:00
Laurent Rineau cb5b3acf98 Class Compare_handles_with_or_without_timestamps to replace hacks
Previously, each file was using its own implementation of the "compare
handle" function object. This commits adds a new class
`Compare_handles_with_or_without_timestamps` that checks the presence of
`Has_timestamp` in the pointed type, and provides a different
`operator()` depending on that.
2017-03-01 12:08:52 +01:00
Laurent Rineau 035a35e78f Fix non-determinism! 2017-02-28 19:19:59 +01:00
Laurent Rineau 58481453f0 More debug possibilities 2017-02-27 15:27:11 +01:00
Laurent Rineau 9c88d16e7b Bug fix! 2017-02-27 15:27:11 +01:00
Jane Tournois 9668b1b6dd add missing abs 2017-02-27 15:27:11 +01:00
Laurent Rineau e28b298c99 Refactoring of Sizing_field_with_aabb_tree (API breakage too)
The refactoring allows to compute a better size of corners in a cycle.

... But the bug is still there on the nasty data set!
2017-02-27 15:27:11 +01:00
Jane Tournois e023fc9157 protect verbose code with macro CGAL_MESH_3_PROTECTION_DEBUG 2017-02-27 15:27:10 +01:00
Laurent Rineau 83f74c0448 Fix the sampling of protecting balls
The previous code never verified that the curve is inside the union of
balls. Now it does.
2017-02-27 15:27:10 +01:00
Jane Tournois 056309de5e allow to use the sizing field of curves more than once
the protecting balls placement algorithm is now allowed to use the sizing field
during 3 iterations, instead of 1. This allows it to fix most of the
forbidden intersections of spheres before switching to the constant size case

this commit relaxes the condition set
 in commit 051c55b08f2bfe5047eef1be1f70f0192b1c5c60
2017-02-27 15:27:10 +01:00
Jane Tournois 2b932b5b71 add dump of c3t3 at every step of protecting balls placement 2017-02-27 15:27:10 +01:00
Laurent Rineau 58abe5a32a Do not use the nonlinear strategy from inside refine_balls() 2017-02-27 15:27:10 +01:00
Laurent Rineau 6ea415022b Merge pull request #1885 from maxGimeno/Tet_soup_in_c3t3-GF
Add a .mesh reader
2017-02-10 19:03:49 +01:00
Maxime Gimeno cc64739c66 Fixes :
- set the dimension of vertices without connectivity to -1 (fixes the BBox's problem)
- re-center the cut-plane after every type of load (fixes the cutplane problem)
2017-02-10 10:10:00 +01:00
Laurent Rineau 3ef84ed758 Merge pull request #1893 from janetournois/Mesh_3-reorganize_experimental-GF
Mesh_3 experimental code - reorganize headers
2017-02-09 18:42:39 +01:00
Jane Tournois eb6797f6b6 include license file header in new files 2017-02-09 16:25:24 +01:00
Jane Tournois 09d09a4dc3 update license preamble 2017-02-09 16:18:36 +01:00
Jane Tournois 4d35f9a36a add wrapper sizing function that is the minimum of 2 sizing fields 2017-02-09 14:25:52 +01:00
Jane Tournois ff36a27ba2 move files to Mesh_3/include/CGAL/Mesh_3/experimental 2017-02-09 14:19:07 +01:00
Maxime Gimeno ef764634b4 Replace the CGAL_precondition about empty finite cells by a warning. 2017-02-08 11:42:18 +01:00
Maxime Gimeno 7a3520b28d Clean-up 2017-02-08 11:42:18 +01:00
Jane Tournois 7fca673ed6 there is no need to collect the connectivity between infinite facets
warning : putting 'end' out of the for loop end condition evaluation is
important. It avoids to continue the loop on newly added things

The condition on the size of `incident_cells_map` inside `assign_neighbors`
is not correct anymore, because there are 4 facets per finite cell
+ 1 facet per infinite cell (boundary facets)
2017-02-08 11:42:18 +01:00
Maxime Gimeno e93b38406c Read the vertices references and discard them 2017-02-08 11:42:18 +01:00
Jane Tournois f86f84db16 revert commit 1602b59845d054b89bf2d0f426943746a9640c2c 2017-02-08 11:42:17 +01:00
Maxime Gimeno 1845bf8c51 Clean-up 2017-02-08 11:42:17 +01:00
Jane Tournois 4b00e1a990 fix orientation and index for built infinite cells
the index does not matter, and the orientation depends on the parity
of i.
Here it does not matter much because infinite cells will not be used,
but let's keep the code as generic as possible
2017-02-08 11:42:17 +01:00
Jane Tournois 1086a8f7ef this precondition is wrong in the general case 2017-02-08 11:42:17 +01:00
Maxime Gimeno f8d8c012f4 Re-indentation 2017-02-08 11:42:16 +01:00
Maxime Gimeno 5e487d75a4 Move Enum to cpp and add license files 2017-02-08 11:42:16 +01:00
Maxime Gimeno a50606ca6f Add a .mesh reader for the c3t3 item 2017-02-08 11:42:14 +01:00
Laurent Rineau 760076510c Merge pull request #1845 from lrineau/Mesh_3-fix_detect_features-GF
Various modifications of Mesh_3
2017-02-06 15:19:31 +01:00
Laurent Rineau 5b19c47bac Fix a warning 2017-02-03 16:43:36 +01:00
Laurent Rineau 9b05a3a5a9 Replace CGAL_MESH_3_NO_PROTECTION_NON_LINEAR by a Boolean
The Boolean `nonlinear_growth_of_balls` can be set by the
non-documented API:
  - the function `Protect_edges_sizing_field::set_nonlinear_growth_of_balls()`,
  - the Boolean `Mesh_3_options.nonlinear_growth_of_balls`.

Of course the demo sets that Boolean when possible.
2017-01-25 16:18:10 +01:00
Sébastien Loriot 50510c05ea add include directive for license of all GPL header files
done using:
ack-grep "^GPL" */package_info/*/license.txt -l | awk -F "/" '{print $1}' > /tmp/gpl_packages
for i in `cat /tmp/gpl_packages | \
          grep -v Operations_on_polyhedra | \
          grep -v Algebraic_kernel_for_circles | \
          grep -v Algebraic_kernel_for_spheres | \
          grep -v Polyhedron_IO`;
do
  echo $i
  python Scripts/developer_scripts/add_license_in_pkg_header.py $i
done
python Scripts/developer_scripts/add_license_in_pkg_header.py Operations_on_polyhedra Polygon_mesh_processing
python Scripts/developer_scripts/add_license_in_pkg_header.py Algebraic_kernel_for_circles Circular_kernel_2
python Scripts/developer_scripts/add_license_in_pkg_header.py Algebraic_kernel_for_spheres Circular_kernel_3
python Scripts/developer_scripts/add_license_in_pkg_header.py Polyhedron_IO Polyhedron
2017-01-19 15:20:25 +01:00
Laurent Rineau ff1f7f2f02 Function to get the number of detected patches 2017-01-19 11:29:42 +01:00
Laurent Rineau ad1b4fe0fc Refine the use of CGAL_MESH_3_PROTECTION_DEBUG 2017-01-19 11:29:42 +01:00
Laurent Rineau dfe8703b21 Access the bounding AABB tree 2017-01-19 11:29:42 +01:00
Laurent Rineau ad3424c41f Update the copyright
There is no longer any line of this file wrote by Stéphane!
2017-01-19 11:29:42 +01:00
Laurent Rineau 099af18b65 Fix detect_features when the domain has several polyhedra 2017-01-19 11:29:42 +01:00
Laurent Rineau ebcc2eaaa0 Compilation fix for test_backward_compatibility.cpp 2017-01-10 11:22:59 +01:00
Laurent Rineau 244ebc1621 Simplify 2017-01-05 15:45:54 +01:00
Laurent Rineau 56285ef220 std::cerr only if CGAL_MESH_3_VERBOSE 2017-01-05 15:45:04 +01:00
Laurent Rineau d3da0be120 Fix detect_features() 2017-01-04 15:49:41 +01:00
Laurent Rineau 2016805734 Reimplement constructors
- In `Polyhedral_mesh_domain_3`:

  - The handling of `p_rng_` is now simpler: the `Random` generator is
    only created just before its use. That reduces code duplication
    between constructors.

  - Use `add_primitives()` and `add_primitives_to_bounding_tree()`, and
    `build()` to reduce the code duplication between all constructors.

- In `Polyhedral_mesh_domain_with_features_3`:

  - All polyhedra are stored in a data member `this->stored_polyhedra`.

  - Always construct the base class without any polyhedron, then use
    `add_primitives()` and `add_primitives_to_bounding_tree()`, from
    polyhedra of `this->stored_polyhedra`.

  - All constructors are inlined in the class (now that their code is
    shorter).

  - Fix the compilation of `detect_borders()`.
2017-01-04 15:45:22 +01:00
Laurent Rineau 29f92b72ce Reimplement detect_borders() with detect_features() 2016-12-30 17:33:36 +01:00
Laurent Rineau ca0fac22e7 Merge branch 'Mesh_3-improve_detect_features-GF' into Mesh_3-various_improvements-lrineau 2016-12-30 17:33:16 +01:00
Laurent Rineau 256416e751 Reimplement detect_features using split_graph_into_polylines (2) 2016-12-30 17:07:16 +01:00
Laurent Rineau 0061a43ec7 CGAL::Real_timer for the building of AABB trees 2016-12-30 16:44:09 +01:00
Laurent Rineau 30397ce22e Integrate Sizing_field_with_aabb_tree in the demo 2016-12-30 16:44:09 +01:00