Skip to content

Commit

Permalink
Merge branch 'gsoc2023-aos_sphere_demo-denizdiktas' of github.com:CGA…
Browse files Browse the repository at this point in the history
…L/cgal-public-dev into gsoc2023-aos_sphere_demo-denizdiktas
  • Loading branch information
denizdiktas committed Jun 5, 2023
2 parents 890395a + 3ade612 commit 2864d74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1106,32 +1106,7 @@ class Arr_polycurve_basic_traits_2 {
// Generic implementation
using Approximate_number_type = void;
using Approximate_point_2 = void;

struct Approximate_2 {
/*! Obtain an approximation of a point coordinate.
* \param p the exact point.
* \param i the coordinate index (either 0 or 1).
* \pre i is either 0 or 1.
* \return An approximation of p's x-coordinate (if i == 0), or an
* approximation of p's y-coordinate (if i == 1).
*/
Approximate_number_type operator()(const Point_2&, int) const
{ CGAL_error_msg("The subtraits does not define Approximate_2!"); }

/*! Obtain an approximation of a point.
*/
Approximate_point_2 operator()(const Point_2&) const
{ CGAL_error_msg("The subtraits does not define Approximate_2!"); }

/*! Obtain an approximation of an \f$x\f$-monotone curve.
*/
template <typename OutputIterator>
OutputIterator operator()(const X_monotone_curve_2&, double,
OutputIterator oi, bool = true) const {
CGAL_error_msg("The subtraits does not define Approximate_2!");
return oi;
}
};
using Approximate_2 = void;
};

template <typename T>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
approximate 108 0.01 1 9
approximate 108 0.01 1 7

0 comments on commit 2864d74

Please sign in to comment.