mirror of https://github.com/CGAL/cgal
Fixed subcurve traits name
This commit is contained in:
parent
d2000416e6
commit
1097c469b2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue