Subject: CGAL users discussion list
List archive
Re: [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: Laurent Rineau <>
- To:
- Subject: Re: [cgal-discuss] Intersect Iso_rectangle_2 with Segment_2, both using projected kernel Gt = CGAL::Projection_traits_xy_3<portho::cgal_utils::K>
- Date: Mon, 1 Aug 2016 17:43:14 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
- Ironport-phdr: 9a23:WuTodR3hSM8VuZzMsmDT+DRfVm0co7zxezQtwd8ZsegVI/ad9pjvdHbS+e9qxAeQG96Ks7Qb1qGG4ujJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL2PbrnD61zMOABK3bVMzfbWtXNGPxJTmn8mJuLTrKz1SgzS8Zb4gZD6Xli728vcsvI15N6wqwQHIqHYbM85fxGdvOE7B102kvpT4r9Zf9HFbtPslssJBSq7nZL8QTLpCDT1gPXpmytfssEznRBaV630AGl8XlBdBHkCR6BjnRJr3rm3gt+xw0TSyNsL/SfYzQzv0vPQjcwPhlCpSb21xy2rQkMEl1K8=
- Organization: GeometryFactory
That is not a bug. `CGAL::Projection_traits_xy_3` is not
documented as a model of the `Kernel` concept, but only a model of
a few concepts, used mostly by 2D triangulations. http://doc.cgal.org/latest/Kernel_23/classCGAL_1_1Projection__traits__xy__3.html
Let's imagine we want to add that intersection functionality to
it, how would you implement that intersection?
On 07/29/2016 04:21 PM, Pol Monsó Purtí
wrote:
This won't compile:
CGAL::Iso_rectangle_2<Gt> isor; CGAL::Segment_2<Gt> seg;
auto result = CGAL::intersection(seg, isor);
with Gt = CGAL::Projection_traits_xy_3<K>
This will:
CGAL::Iso_rectangle_2<K> isor2;
CGAL::Segment_2<K> seg2;
auto result2 = CGAL::intersection(seg2, isor2);
On Fri, Jul 29, 2016 at 4:09 PM, Pol
Monsó Purtí <>
wrote:
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:
I've tried defining Iso_rectangle_2 ascannot 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. CGAL::Iso_rectangle_2<Gt>
as well as Gt::Iso_rectangle_2
CGAL::intersect() documentation says
Iso_rectangle_2 and Segment_2 are accepted.
|
- Re: [cgal-discuss] Intersect Iso_rectangle_2 with Segment_2, both using projected kernel Gt = CGAL::Projection_traits_xy_3<portho::cgal_utils::K>, Laurent Rineau, 08/01/2016
Archive powered by MHonArc 2.6.18.