Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Point with Information

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Point with Information


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Point with Information
  • Date: Tue, 31 Aug 2010 19:54:01 +0200

philippH wrote:
Hello,

I have a custom Point class wich is derived from Point_3 storing some extra
Information.
Is there a easy way to insert these Points into a kdTree without having to
build a customized
distance class.
First of all, have you already try to do it? In some cases the derivation is fine. Can you provide a minimal example showing an
error message?

The official method to use a custom Point type is to defined your own
kernel as described here:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Kernel_23/Chapter_main.html#Subsection_11.5.2

If you do this then all functors defined for CGAL kernels will works
with your point type.

Is there another way to associate Information with a Point similar to
Triangulation_vertex_base_with_info_3
Unfortunately not now, but that may change in the future.


S.


best regards, Philipp




Archive powered by MHonArc 2.6.16.

Top of Page