Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss]

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss]


Chronological Thread 
  • From: Kwok Jasper <>
  • To: <>
  • Subject: RE: [cgal-discuss]
  • Date: Thu, 8 Jan 2009 17:58:30 +0800
  • Importance: Normal

Thanks.
After fully understanding how to use the Search Traits , I know what I may to to achieve the goal.
Thank you very much 


From:
To:
Date: Thu, 8 Jan 2009 15:58:57 +0800
Subject: [cgal-discuss]

Excuse me, may I ask something about the spatial search in CGAL in the following?

http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Spatial_searching/Chapter_main.html

In the spatial search examples in the above links, the search is only based on point type

May I ask if it is possible to use user defined type in the search?

e.g.
 

if I have the following struct


typedef CGAL::Simple_cartesian<double> Rep_class;
typedef Rep_class::Point_3 Point;
typedef CGAL::Vector_3<Rep_class > Vector;

struct SamplePoint
{
     Point sample_point;
     Vector  surface_normal;
};


Then, is it possible to search by using the the information of a sample_point,
then after it has searched a SamplePoint object by using the information of the sample_point,
return the surface_normal of that searched object ?
May I ask if it is possible to use the search structure to do that?

Hope you know what I mean. Thank you very much.
 




利用 Windows Live™ Photos 輕?分享相片。 簡易上載及分享照片

利用 Windows Live™ Photos 輕?分享相片。 簡易上載及分享照片



Archive powered by MHonArc 2.6.16.

Top of Page