Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Why do we need the property map parameters in read_xyz_points_and_normals()

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Why do we need the property map parameters in read_xyz_points_and_normals()


Chronological Thread 
  • From: Laurent Saboret <>
  • To:
  • Subject: Re: [cgal-discuss] Why do we need the property map parameters in read_xyz_points_and_normals()
  • Date: Mon, 08 Aug 2011 10:44:00 +0200

Le 08/08/2011 09:24, Yifei Li a écrit :
Hi all,

read_xyz_points_and_normals(std::stream& in , OutputIterator output,
PointPMap point_pmap, NormalPMap normal_pmap) is used to read coordinates and
normals from a file (see CGAL/IO/read_xyz_points_and_normals.h). I don't
understand what the parameters point_pmap and normal_pmap are useful for. It
sounds like they are used to hold coordinates and normals respectively, but I
think output is used for this purpose too. I guess I may use the function in the
following way:

typedef std::vector< std::pair<Point,Vector> > points;
read_xyz_points_and_normals(input,std::back_inserter(points));


I appreciate your help.

Yifei

Hi Yifei,

The "point_pmap" and "normal_pmap" property maps are used to access the point or normal
information inside the "output" point type, so as to let the user decide upon the implementation
of a point with normal.
See the property maps documentation at
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Point_set_processing_3/Chapter_main.html#Section_56.2

An example is provided in this documentation, and other examples are provided in
"Surface Reconstruction from Point Sets" chapter
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Surface_reconstruction_points_3/Chapter_main.html

Best regards,
Laurent Saboret





Archive powered by MHonArc 2.6.16.

Top of Page