Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Intersect Iso_rectangle_2 with Segment_2, both using projected kernel Gt = CGAL::Projection_traits_xy_3<portho::cgal_utils::K>

Subject: CGAL users discussion list

List archive

[cgal-discuss] Intersect Iso_rectangle_2 with Segment_2, both using projected kernel Gt = CGAL::Projection_traits_xy_3<portho::cgal_utils::K>


Chronological Thread 
  • From: Pol Monsó Purtí <>
  • To:
  • Subject: [cgal-discuss] Intersect Iso_rectangle_2 with Segment_2, both using projected kernel Gt = CGAL::Projection_traits_xy_3<portho::cgal_utils::K>
  • Date: Fri, 29 Jul 2016 16:09:56 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:hPRRexyaqAs2F93XCy+O+j09IxM/srCxBDY+r6Qd0ekRIJqq85mqBkHD//Il1AaPBtSDrawVwLSK+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2WVTerzWI4CIIHV2nbEwud7yzRN+Z0Zj//tvx0qWbWx9Piju5bOE6BzSNhiKViPMrh5B/IL060BrDrygAUe1XwWR1OQDbxE6ktY/jtKJkpi9fsvZk+89bWrjhZIw5S6ZZBXIoKTMb/sru4CHESUOq4X0HyS0ujwBUhkCR6BXnWJ63tCzkv8Jy3SCbOYv9SrViCmfq1LtiVBK90HRPDDU+6myC0sE=

How can I interesect an Iso_rectangle_2 and Segment_2 using CGAL::intersection() ? I get a lot of errors regarding its definition. I believe the most rellevant is:

Iso_rectangle_2 is not a member of CGAL::Projection_traits_xy_3<K>

At the intersection line I get the error:

cannot convert from 'const CGAL::Iso_rectangle_2<portho::cgal_utils::Gt>' to 'const CGAL::Bbox_3'

The Segment_2 comes from a CGAL::Polygon_2<Gt>::Segment_2.

I've tried defining Iso_rectangle_2 as

CGAL::Iso_rectangle_2<Gt> as well as Gt::Iso_rectangle_2

CGAL::intersect() documentation says Iso_rectangle_2 and Segment_2 are accepted.

If I can't figure it out I'll just create a copy of the segment and the iso rectangle based on K instead of Gt



Archive powered by MHonArc 2.6.18.

Top of Page