Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] question on CGAL::create_exterior_skeleton_and_offset_polygons_2

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] question on CGAL::create_exterior_skeleton_and_offset_polygons_2


Chronological Thread 
  • From: Hoang Giang Bui <>
  • To:
  • Subject: Re: [cgal-discuss] question on CGAL::create_exterior_skeleton_and_offset_polygons_2
  • Date: Sat, 16 Apr 2016 18:53:40 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:sno9zhWDO7hIPlsbDUzfzg09CYnV8LGtZVwlr6E/grcLSJyIuqrYZh2Dt8tkgFKBZ4jH8fUM07OQ6PCwHzFRqsne+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq82VPlQD22X1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu2pN5k+VqFSWTQ6L3gutoqsrgjGVQLJ530GU2xQnAAPGBnA9Bi9X5H/tWzxueN5nSWbJsbrVqtnZTP35KhiTFrkiTwMKiUi2GDRkM15yqxB8zy7oBkq44ndZo7dG/t3eKyVV84bDT5BUcxSDXQZUquzaoIOC6wKOuMO/Nq1nEcHsRbrXVrkP+jo0DId3nI=

Thanks for the clarification

Giang

> On 15 Apr 2016, at 10:19, Sebastien Loriot (GeometryFactory)
> <>
> wrote:
>
> IIRC, in order to compute the offset, a large bbox is put around the input
> model. The extra output polygon is the offset of the bbox.
>
> Sebastien.
>
>> On 04/15/2016 09:46 AM, Hoang Giang Bui wrote:
>> Hello
>>
>> I have a simple question. To create an offset polygon I used the code
>> from examples:
>>
>> Polygon_2 poly ;
>> poly.push_back( Point(0,0) ) ;
>> poly.push_back( Point(1,0) ) ;
>> poly.push_back( Point(1,1) ) ;
>> poly.push_back( Point(0,1) ) ;
>>
>> FT lOffset = 0.1 ;
>> PolygonPtrVector outer_offset_polygons =
>> CGAL::create_exterior_skeleton_and_offset_polygons_2(lOffset,poly);
>> print_polygons(outer_offset_polygons);
>>
>> But it produces two polygons:
>>
>> Polygon list with 2 polygons
>> Polygon with 4 vertices
>> (-0.146421,-0.146421)
>> (1.14642,-0.146421)
>> (1.14642,1.14642)
>> (-0.146421,1.14642)
>> Polygon with 4 vertices
>> (-0.1,1.1)
>> (1.1,1.1)
>> (1.1,-0.1)
>> (-0.1,-0.1)
>>
>> The second is correct but the first seems hard to understand. Does
>> anyone have idea what it is?
>>
>> Giang
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>



Archive powered by MHonArc 2.6.18.

Top of Page