Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Straight skeleton with Exact_predicates_exact_constructions_kernel

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Straight skeleton with Exact_predicates_exact_constructions_kernel


Chronological Thread 
  • From: Philipp Moeller <>
  • To:
  • Subject: Re: [cgal-discuss] Straight skeleton with Exact_predicates_exact_constructions_kernel
  • Date: Tue, 10 Jul 2012 11:29:24 +0200

Myirci
<>
writes:

> Dear all,
>
> I'm trying to generate a straight skeleton of a simple polygon using
> CGAL version 3.8. I built and ran the example given below.
> http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Straight_skeleton_2/Chapter_main.html
> - "23.3.1 Create a Straight Skeleton"
> However I need to use the Exact_predicates_exact_constructions_kernel.
> In all of the examples given in the CGAL Documentation
> Exact_predicates_inexact_constructions_kernel is used.

Look at the documentation of the function
CGAL::create_interior_straight_skeleton_2 [1]. The third parameter of
the overload used in the example lets you specify the kernel that is to
be used for the return Straight_skeleton.

It's a little bit odd that the parameter is not chosen depending on the
input primitives, but has to be manually specified.

Also, you are linking to the CGAL 4.0 documentation. Be careful to use
the right documentation for the version you are using.

HTH,
Philipp

Footnotes:
[1]
http://www.cgal.org/Manual/3.8/doc_html/cgal_manual/Straight_skeleton_2_ref/Function_create_interior_straight_skeleton_2.html




Archive powered by MHonArc 2.6.18.

Top of Page