Mael Rouxel-Labbé
8c890a1226
Fixed Mesh_3's criteria tests (must pass the triangulation in parameter)
2017-06-20 11:04:49 +02:00
Mael Rouxel-Labbé
1518ef12f2
Removed Mesh_3/test/Mesh_3/test_backward_compatibility.cpp
...
The concepts MeshFacetCriteria_3 and MeshCellCriteria_3 have been updated with
a breaking change on their operator() (the triangulation must be passed
as additional parameter).
2017-06-20 10:50:11 +02:00
Mael Rouxel-Labbé
1dcc8b1fc5
Fixed Mesh_3's criteria concepts
2017-06-19 17:59:36 +02:00
Mael Rouxel-Labbé
6bb260c954
Document Mesh_3 criteria change (see dd5cd9a)
2017-06-19 15:55:15 +02:00
Mael Rouxel-Labbé
1761ec3294
Mesh_3 criteria is_bad() now additionally takes the triangulation as parameter
...
Instead of calling Criteria(element), one must now call Criteria(tr, element).
The idea is that the triangulation should be responsible of geometric data
while elements only handle connectivity (using ids for example).
This is already the case for Periodic_3_mesh_3 which must obtain
"true" geometric information through the (periodic) triangulation class's
methods.
These changes are transparent for Mesh_3 but allow Periodic_3_mesh_3 to use
Mesh_3's criteria.
2017-06-19 15:15:20 +02:00
Mael Rouxel-Labbé
7c014c9e27
Merge branch 'Periodic_3_mesh_3-Feature-MBogdanov-old' into Periodic_3_mesh_3-Feature-MBogdanov
...
Based on cgal-public-dev/Periodic_3_Regular...
@ 7efd46f427580437943fa549bdbf1159f35b1edb
2017-06-16 11:21:52 +02:00
Mael Rouxel-Labbé
5018c014b7
Merge branch 'Periodic_3_Regular_triangulation_3-APelle-old' into Periodic_3_Regular_triangulation_3-APelle
...
Based on Kernel_Weighted_point_without...
@ 41e7520b3e
2017-06-15 15:07:53 +02:00
Mael Rouxel-Labbé
a9e25ec619
Renamed Compact_mesh_cell_base_3's circumcenter_ to weighted_circumcenter_
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
9cc17dc935
Renamed uses of invalidate_circumcenter() in accordance with the modified concept
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
6e3f07a72d
Adapted the documentation to the new concept RegTrCellBaseWithWeightedCircumcenter
...
- MeshCellBase_3 loses "invalidate_circumcenter" and refines the new concept
- Reg_tr_cell_base_with_weighted_circumcenter_3 is a model of the new concept
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
f33fc2a456
Fixed Robust_weighted_[...]_traits offering a weighted API for squared_radius_3
...
This is artifically creating implicit conversions, which we are removing
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
222248548c
Fixed point / weighted_point usage
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
eb4340fe96
MeshVertexBase_3 must refine RegularTriangulationVertexBase_3
...
and not TriangulationVertexBase_3
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
ba8314c36e
Cosmetic changes to MeshCellBase_3
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
174701d161
Fixed the concept MeshCellBase_3
...
The surface center is not of type Tr::Point, but Tr::Bare_point.
Added to changes.html
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
f93fc58cae
Removed obsolete class Creator_weighted_point_3.h
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
fa6be567e5
Fixed boost/core/is_same.hpp > boost/type_traits/is_same.hpp
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
d22eaa2ce5
Forgot compact_mesh_cell_base in f2a308d
...
That is, making cell_bases models of the concept RegularTriangulationCellBase_3
2017-06-15 10:34:15 +02:00
Jane Tournois
dae940b0fd
really use the GT given as a parameter
...
When the geom_traits given as parameter of `circumcenter` and/or
`weighted_circumcenter` was deriving from the cell base GT
(first template parameter), the gt was up-casted to the
cell base GT, and the function construct_circumcenter_3_object()
(or construct_weighted_circumcenter_3_object()) not
called on the right geom traits type --> possibly missing
the actual input of the function (the robust_circumcenter_traits in Mesh_3)
we add a static assert to check at compile time that point types are the same
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
9d53db0c54
Fixed abusive class member initialization
2017-06-15 10:34:15 +02:00
Jane Tournois
e399530d69
really use the GT given as a parameter
...
When the geom_traits given as parameter of `circumcenter` and/or
`weighted_circumcenter` was deriving from the cell base GT
(first template parameter), the gt was up-casted to the
cell base GT, and the function construct_circumcenter_3_object()
(or construct_weighted_circumcenter_3_object()) not
called on the right geom traits type --> possibly missing
the actual input of the function (the robust_circumcenter_traits in Mesh_3)
we add a static assert to check at compile time that both geom traits
are compatible
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
451f084021
Annihilated Regular_triangulation_euclidean_traits_23 across all packages
...
Left a little bit alive in the tests and in the Triangulation_23/doc
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
b5dadc0c95
Fixed various Bare_point / Weighted_point usage across Mesh_3
...
Hopefully, this is the last batch
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
a4503e7edc
Moved facet dual computation functions from Mesh_3 to Regular_triangulation_3
...
... and improved them and gave them more overloads
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
9518646be4
Moved up the force_exact test to avoid computing useless determinants
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
0a91dac5ed
Removed useless includes
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
cb70dfb644
Cleaned uses of obsolete traits class Regular_triangulation_euclidean_traits
2017-06-15 10:34:15 +02:00
Mael Rouxel-Labbé
417057b6fe
Removed useless semicolon
2017-06-15 10:32:03 +02:00
Mael Rouxel-Labbé
5bb794a590
Fixed using Weighted_point_creator to construct weighted point
...
This class is obsolete; kernel functors should be used.
2017-06-15 10:32:03 +02:00
Mael Rouxel-Labbé
ce5660acbd
Fixed (almost all) default constructed traits in Mesh_3
...
Also fixed constructing points/weighted_points not through the traits and
uses of point().point()
2017-06-15 10:32:03 +02:00
Mael Rouxel-Labbé
96e053211e
Fixed (remaining) Bare_point / Weighted_point wrong usages across Mesh_3
2017-06-15 10:32:03 +02:00
Mael Rouxel-Labbé
78ea055735
Removed Bare_point definition from Mesh_3's Robust_weighted_...etc..._traits
...
It is not for the traits to define Bare_point. It is defined in the regular
triangulation.
This commit breaks stuff, but it'll be fixed in the following commits.
2017-06-15 10:32:03 +02:00
Mael Rouxel-Labbé
24994be80d
Removed useless semicolon
2017-06-15 10:32:03 +02:00
Mael Rouxel-Labbé
d3a75a191c
Minor doc improvement
2017-06-15 10:32:03 +02:00
Mael Rouxel-Labbé
67b0924ee0
Fixed compilation issues resulting from the removal of WP->P implicit conversion
2017-06-15 10:32:03 +02:00
Mael Rouxel-Labbé
5db27d88d2
Consistently grab the Bare_point typedef from the triangulation
...
instead of the geometric traits
2017-06-15 10:32:03 +02:00
Mael Rouxel-Labbé
f7592fbbdd
Fixed missing typedef
...
and removed some warnings due to unused typedefs
2017-06-15 10:32:03 +02:00
Jane Tournois
85e87d4f59
remove useless variables
2017-06-15 10:32:03 +02:00
Jane Tournois
a7b92113c7
remove extra reference
...
this was leading to (fp == p), and no way to move back to the original
position of v0
2017-06-15 10:32:03 +02:00
Jane Tournois
04b2f4ea25
return type should be Bare_point
2017-06-15 10:32:03 +02:00
Jane Tournois
4db6afd2aa
fix one more Bare_point
2017-06-15 10:32:03 +02:00
Jane Tournois
9d4b697503
make constructors of Weighted_point explicit
...
and fix compilation errors
2017-06-15 10:32:03 +02:00
Andreas Fabri
42509e2a1f
make the Polyhedron demo mesh_3_plugin work
2017-06-15 10:32:03 +02:00
Jane Tournois
ea970f5aa5
avoid using wp.point(), use Construct_point_3 instead
2017-06-15 10:29:26 +02:00
Jane Tournois
5180389e3a
remove hybrid operators, that use Bare points and Weighted points in an ambiguous manner
...
this commit only fixes the testsuite of Mesh_3
2017-06-15 10:29:26 +02:00
Andreas Fabri
3f4286068c
Now also the examples compile
2017-06-15 10:29:26 +02:00
Andreas Fabri
58c8d7cb1a
WIP: test_meshing_polyhedron_with_features compiles and crashes in odt
2017-06-15 10:29:26 +02:00
Andreas Fabri
5a090c26a4
Consistently use Bare_point and Weighted_point
2017-06-15 10:29:26 +02:00
Andreas Fabri
80224bf2c8
Disable Point_3(const Weighted_point_3&)
2017-06-15 10:29:26 +02:00
Maxime Gimeno
bd45c39ef3
Fix warnings
2017-06-14 09:32:13 +02:00