Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] snaprounding with custom kernel

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] snaprounding with custom kernel


Chronological Thread 
  • From: Marc Glisse <>
  • To:
  • Subject: Re: [cgal-discuss] snaprounding with custom kernel
  • Date: Sun, 15 May 2016 16:58:32 +0200 (CEST)

On Sun, 15 May 2016, Peter Sadrozinski wrote:

Hello,

I am attempting to use snap rounding with a custom kernel ( new point
container ).
I am basing the test code on the CGAL Kernel23/ example.

I am seeing gcc errors, and I suppose I need some more glue, but am unable
to tell what that may be.

Any direction in how to proceed would be appreciated.

I've created a gist with the gcc error log, and sample code on github here:
https://gist.github.com/petersadro/0d6a80764752869d8639c3d6bf82e7d1

I have no idea where this is documented, but cgal kernel functors use the boost/tr1 result_of protocol, and at least the error message is very clear. You are missing:
typedef const FT* result_type;
in class MyConstruct_coord_iterator.

Kd_tree_rectangle.h seems to have a bug, it should not use Construct_cartesian_const_iterator_d::result_type directly but go through result_of instead. This would make the typedef unnecessary in C++11.

--
Marc Glisse



Archive powered by MHonArc 2.6.18.

Top of Page