Commit Graph

101 Commits

Author SHA1 Message Date
Sébastien Loriot c0edb5ecaa remove CGAL_CXX11 macro usage 2019-07-08 11:42:17 +02:00
Andreas Fabri 4581f1b7a8 Morte replacements 2019-06-05 08:39:55 +02:00
Laurent Rineau 5c2df203b4 Merge pull request #3943 from mglisse/Number_types-expression_templates-glisse
Misc fixes for expression templates
2019-05-23 08:50:17 +02:00
Mael Rouxel-Labbé 2848158354 Fix typos 2019-05-20 08:54:04 +02:00
Marc Glisse d3e9ce2d6b Missing #include 2019-05-17 23:47:34 +02:00
Marc Glisse a676b75ca0 Misc fixes for expression templates 2019-05-17 19:48:41 +02:00
Sebastien Loriot 80cece608c
Merge pull request #3595 from MaelRL/T2-Remove_strict_conflict_zone_boolean-GF
Triangulation_2: revert small feature DT2_strict_and_weak_conflict_zone
2019-04-12 15:35:06 +02:00
Sébastien Loriot 5a30e88a92 replace cpp11::function by std::function 2019-03-29 13:28:33 +01:00
Mael Rouxel-Labbé 48185ac153 Filter out irrelevant (<= 0) natural and regular neighbor coordinates
- coord == 0 is possible in theory, but not interesting to output
- coord < 0 is not possible in theory, but since we do construction and use
  signed (polygon_area_2()) area computations, we could in theory get
  negative coordinates in output
2019-01-14 11:20:16 +01:00
Mael Rouxel-Labbé 14150ef95c Revert commit b307771 ("bug fix for natural_neighbor_coordinates_2...
... using a small feature in the conflict zone functions of
Delaunay_triangulation_2")

See concerns raised in the (not-actually-approved) small feature:

https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/DT2_strict_and_weak_conflict_zone
2019-01-14 11:19:21 +01:00
Andreas Fabri 660cb5d778 Add precondition that range is non-empty. This is more explicit than the precondition that norm>0 2018-10-02 11:07:43 +02:00
Andreas Fabri 77010f5f0a Resimplify and fix the documentation 2018-09-26 16:17:35 +02:00
Andreas Fabri c5f85b212d Switch to make_zero() 2018-09-26 11:46:22 +02:00
Andreas Fabri 41946b72d6 Make linear_interpolation() work with non-scalar data 2018-09-26 09:06:34 +02:00
Mael Rouxel-Labbé 8b6826cb83 Renamed an internal function
Some compilers seem to get confused between different functions by the
<VF_arg_type> despite the functions having different numbers of arguments.
2018-06-28 11:57:06 +02:00
Mael Rouxel-Labbé 68c8b797a6 Merge branch 'Interpolation-Use_result_of-GF-old' into Interpolation-Use_result_of-GF 2018-06-26 14:27:19 +02:00
Mael Rouxel-Labbé 14bda813d3 Workaround boost::is_constructible not being safe to use before C++11
Incidentally means that argument_type unfortunately must be defined
when not using C++11...
2018-06-25 12:13:46 +02:00
Mael Rouxel-Labbé cdf325138a Tiny indentation fix 2018-06-15 13:01:49 +02:00
Mael Rouxel-Labbé c76dace89b Replaced uses of ::result_type and ::argument_type in Interpolation
This allows to pass more generic functors such as lambdas, for example.
2018-06-15 12:53:46 +02:00
Mael Rouxel-Labbé 26c857a431 Moved unary/binary_function to CGAL::cpp98 2018-06-13 15:58:19 +02:00
Andreas Fabri bfaa3b7d6e fix include 2018-05-04 13:57:41 +02:00
Mael Rouxel-Labbé de5795936f Fixed indentation 2018-05-04 13:57:41 +02:00
Mael Rouxel-Labbé 44570bd7e0 Fixed broken backward compatibility 2018-05-04 13:57:40 +02:00
Mael Rouxel-Labbé 7a2382ee7f Factorized some calls to construct_point_d 2018-05-04 13:57:40 +02:00
Mael Rouxel-Labbé f69c1f734a Replaced 'assert' with 'continue'
This function takes a vertex handle vh and computes the coordinates
in the hypothetical situation of vh being removed and querying at vh->point().

If vh is adjacent to the infinite vertex, then vh->point() will be outside
the convex hull (most likely, could be on the boundary too). The base function
taking a point can handle that case, it returns: (empty, 0, false). Rather
than crashing, let the other function return 'false'.
2018-05-04 13:57:40 +02:00
Mael Rouxel-Labbé dc14d129a4 Readability changes 2018-05-04 13:57:39 +02:00
Mael Rouxel-Labbé 207fbb7efd Changed functor's result type
Technically the point() function of the TriangulationVertexBase_2 concept
has return type Point and not const Point& so we can't take a const ref here
otherwise we might take refs to temporaries.
2018-05-04 13:57:39 +02:00
Mael Rouxel-Labbé d32a4ff717 Fixed regular neighbor coordinates when the query point is hidden 2018-05-04 13:57:39 +02:00
Mael Rouxel-Labbé dbc48009bc Various minor to natural/regular coordinates 2018-05-04 13:57:39 +02:00
Mael Rouxel-Labbé c88b17f92e Clarified functor names 2018-05-04 13:57:39 +02:00
Mael Rouxel-Labbé e005946a67 Improvements to sibson_gradient_fitting.h
- better variable/template names
- better function order
- some simplifications and warning cleaning
2018-05-04 13:57:39 +02:00
Mael Rouxel-Labbé ed823a875c Fixed compilation after functor name change 2018-05-04 13:57:38 +02:00
Mael Rouxel-Labbé efcafe4073 Added a comment 2018-05-04 13:57:38 +02:00
Mael Rouxel-Labbé 42c25d1c84 Readability changes (no real changes) 2018-05-04 13:57:38 +02:00
Mael Rouxel-Labbé 4f02f892cb Added missing overloads and cleaned code in (nn|rn)_coordinates_2 2018-05-04 13:57:38 +02:00
Mael Rouxel-Labbé d041642800 Generalized Interpolation helper functors and cleaned their names 2018-05-04 13:57:38 +02:00
Mael Rouxel-Labbé 67f99cc53d Fixed trailing whitespace and (some of the) inconsistent indentation
No real changes.
2018-05-04 13:57:38 +02:00
Sébastien Loriot 0a27019322 fix sibson interpolation 2018-05-04 13:57:38 +02:00
Sébastien Loriot 1e6806f6e1 add missing overloads 2018-05-04 13:57:38 +02:00
Andreas Fabri 6bb5deff4d Add an example 2018-05-04 13:57:38 +02:00
Andreas Fabri af093e3a15 Make it work for regular neighbors. Make Sibson geadient fitting write weighted points 2018-05-04 13:57:38 +02:00
Andreas Fabri 2bc8e23653 move helper classes in a subdirectory/namespace/file 2018-05-04 13:57:38 +02:00
Andreas Fabri abc19d9c9d Add the possibility to store values and gradients in vertex_with_info 2018-05-04 13:57:38 +02:00
Andreas Fabri de5c1e4d46 Add the possibility to store value and gradient in the triangulation vertices 2018-05-04 13:57:38 +02:00
Sébastien Loriot 8cdfad0d08 add missing URL and Id tags 2017-11-15 22:58:57 +01:00
Sébastien Loriot ee57fc2d6c add SPDX identifier for files under the GPL-3+ license 2017-11-12 10:17:51 +01:00
Laurent Rineau 7e9f756935 Replace all std::unary_function by CGAL::unary_function 2017-10-04 15:57:09 +02:00
Mael Rouxel-Labbé a926aa22cb Fixed weighted point issue in gradient fitting functions 2017-09-13 16:24:39 +02:00
Laurent Rineau 9551bae7e6 Fix a compilation error in Travis
fix the `check_pkg_Interpolation_headers` target
2017-06-29 09:45:00 +02:00
Mael Rouxel-Labbé 3a3c6b2617 Fixed missing include 2017-06-28 10:16:23 +02:00