Fixed subcurve traits name

This commit is contained in:
Efi Fogel 2015-02-15 11:57:42 +02:00
parent d2000416e6
commit 1097c469b2
1 changed files with 3 additions and 6 deletions

View File

@ -445,17 +445,14 @@ public:
*/
X_monotone_curve_2 operator()(const Point_2& p, const Point_2& q) const
{
CGAL_precondition_code
(typename Segment_traits_2::Equal_2 equal =
this->m_poly_traits.segment_traits_2()->equal_2_object(););
CGAL_precondition_msg
(!equal(p,q),
(!this->m_poly_traits.geometry_traits_2()->equal_2_object()(p,q),
"Cannot construct a degenerated segment as a polyline");
X_monotone_segment_2 seg = this->m_poly_traits.segment_traits_2()->
X_monotone_segment_2 seg = this->m_poly_traits.geometry_traits_2()->
construct_x_monotone_curve_2_object()(p, q);
#ifdef CGAL_ALWAYS_LEFT_TO_RIGHT
if (this->m_poly_traits.segment_traits_2()->compare_xy_2_object()(p,q) ==
if (this->m_poly_traits.geometry_traits_2()->compare_xy_2_object()(p,q) ==
LARGER)
seg = m_poly_traits.geometry_traits_2()->
construct_opposite_2_object()(seg);