Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] Straight skeleton with Exact_predicates_exact_constructions_kernel


Chronological Thread 
  • From: Myirci <>
  • To:
  • Subject: [cgal-discuss] Straight skeleton with Exact_predicates_exact_constructions_kernel
  • Date: Tue, 10 Jul 2012 11:20:41 +0200

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. When I changed
the kernel to what I want, I get the following error:

/home/myirci/Documents/dev-trial/CGAL/Polygons/Straight
Skeleton/straight_skeleton.cpp:78: error: conversion from
‘boost::shared_ptr<CGAL::Straight_skeleton_2<CGAL::Epick> >’ to
non-scalar type ‘SsPtr {aka
boost::shared_ptr<CGAL::Straight_skeleton_2<CGAL::Epeck> >}’ requested

/home/myirci/Documents/dev-trial/CGAL/Polygons/Straight
Skeleton/straight_skeleton.cpp:84: error: conversion from
‘boost::shared_ptr<CGAL::Straight_skeleton_2<CGAL::Epick> >’ to
non-scalar type ‘SsPtr {aka
boost::shared_ptr<CGAL::Straight_skeleton_2<CGAL::Epeck> >}’ requested

/usr/include/CGAL/compute_outer_frame_margin.h:-1: In function
‘boost::optional<FT>
CGAL::compute_outer_frame_margin(ForwardPointIterator,
ForwardPointIterator, FT) [with ForwardPointIterator =
__gnu_cxx::__normal_iterator<CGAL::Point_2<CGAL::Epeck>*,
std::vector<CGAL::Point_2<CGAL::Epeck>,
std::allocator<CGAL::Point_2<CGAL::Epeck> > > >, FT = double]’:

/usr/include/CGAL/compute_outer_frame_margin.h:113: error: could not
convert ‘CGAL::compute_outer_frame_margin(ForwardPointIterator,
ForwardPointIterator, typename Traits::FT, const Traits&) [with
ForwardPointIterator =
__gnu_cxx::__normal_iterator<CGAL::Point_2<CGAL::Epeck>*,
std::vector<CGAL::Point_2<CGAL::Epeck>,
std::allocator<CGAL::Point_2<CGAL::Epeck> > > >, Traits =
CGAL::Polygon_offset_builder_traits_2<CGAL::Epeck>, typename
Traits::FT = CGAL::Lazy_exact_nt<CGAL::Gmpq>](aEnd,
CGAL::Lazy_exact_nt<CGAL::Gmpq>((*(const Type*)(& aOffset))), (*(const
CGAL::Polygon_offset_builder_traits_2<CGAL::Epeck>*)(& traits)))’ from
‘boost::optional<CGAL::Lazy_exact_nt<CGAL::Gmpq> >’ to
‘boost::optional<double>’

/usr/include/CGAL/Straight_skeleton_builder_2.h:792: error: no match
for call to ‘(const CGAL::Cartesian_converter<CGAL::Epeck,
CGAL::Epick, CGAL::NT_converter<CGAL::Lazy_exact_nt<CGAL::Gmpq>,
double> >) (CGAL::Point_2<CGAL::Epick>&)’

Thank you very much for your time and considerations.

Have a nice day.

Murat Yirci



Archive powered by MHonArc 2.6.18.

Top of Page