Subject: CGAL users discussion list
List archive
- From: Kim <>
- To:
- Subject: Re: [cgal-discuss] how to convert from General_Polygon to
- Date: Thu, 7 May 2009 02:30:18 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=JXbi9WRmQtFGj3TjzJc4qQ56rou/CFHhAhjLwe0lG04Qk9zfZ1/NRbuUhjOg8xVLl8 I6edvyDjk0isJcDgj1a/laYJYcaP9BkhS99U6nzYAF/aG5oJlsP4LHxDwk5Hi4dvn2D5 VDga3TLkQiM2uQqCElD8Qgnf5UlIlIoWmDhnU=
hi
thx for you help
br
Kim
On Thu, May 7, 2009 at 12:25 AM, Kim Pedersen
<>
wrote:
> hi
>
> thx for you help
>
> br
> Kim
>
> On Mon, May 4, 2009 at 1:13 PM,
> <>
> wrote:
>> Hi,
>> You have 2 options.
>> If you want to join the polygon's into a polygon set you can use the Gps
>> Traits functor for constructing pwh:
>>
>> GeneralPolygonSetTraits_2::Construct_general_polygon_with_holes_2
>>
>> which constructs a general polygon with holes from a general polygon and,
>> optionally, a range of holes. It uses the operator
>> General_polygon_with_holes_2 operator() (const General_polygon_2&
>> pgn_boundary)
>> or
>> General_polygon_with_holes_2 operator() (const General_polygon_2&
>> pgn_boundary, HolesInputIterator h_begin, HolesInputIterator h_end)
>> parameterized by the HolesInputIterator type.
>>
>> for instance:
>> typedef Traits::Construct_general_polygon_with_holes_2
>> Construct_general_polygon_with_holes_2;
>> Polygon_Set Gps;
>> Traits tr;
>> Construct_general_polygon_with_holes_2 functor =
>> tr.construct_polygon_with_holes_2_object ();
>> Polygon_with_Holes_2 pwh = functor(your_pgn);
>>
>> Otherwise, simply use the PWH constructor directly:
>> General_polygon_with_holes_2(const General_polygon_2& pgn_boundary);
>>
>> Best,
>>
>> Guy
>>
>> Quoting
>> :
>>
>>> Hi
>>>
>>> I have a list of General_Polygons I want to convert to
>>> Polygon_with_holes ,, I have tried a lot of things without luck
>>> ,,,,how to ?
>>>
>>>
>>>
>>> I just want to Join them using
>>>
>>> Polygon_set pgnset;
>>>
>>> pgnset.join(ph.begin(),ph.end());
>>>
>>> typedef below.
>>>
>>> Best regards
>>> kim
>>>
>>> typedef Traits::Curve_2 Curve;
>>> typedef Traits::X_monotone_curve_2 XCurve;
>>> typedef Traits::Point_2 Circular_point_2;
>>> typedef Traits::Polygon_2 Polygon_2;
>>> typedef CGAL::General_polygon_2<Traits> General_Polygon;
>>> typedef CGAL::General_polygon_2<Traits> P2;
>>> typedef CGAL::General_polygon_with_holes_2<Polygon_2> Polygon_with_holes;
>>> typedef CGAL::General_polygon_set_2<Traits> Polygon_set;
>>> --
>>> You are currently subscribed to cgal-discuss.
>>> To unsubscribe or access the archives, go to
>>> https://lists-sop.inria.fr/wws/info/cgal-discuss
>>>
>>
>>
>> --
>> You are currently subscribed to cgal-discuss.
>> To unsubscribe or access the archives, go to
>> https://lists-sop.inria.fr/wws/info/cgal-discuss
>>
>
- [cgal-discuss] how to convert from General_Polygon to, cgal, 05/03/2009
- Re: [cgal-discuss] how to convert from General_Polygon to, guyzucke, 05/04/2009
- Message not available
- Re: [cgal-discuss] how to convert from General_Polygon to, Kim, 05/07/2009
- Message not available
- Re: [cgal-discuss] how to convert from General_Polygon to, guyzucke, 05/04/2009
Archive powered by MHonArc 2.6.16.