Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: Yifei Li <>
  • To:
  • Subject: [cgal-discuss] Why do we need the property map parameters in read_xyz_points_and_normals()
  • Date: Mon, 8 Aug 2011 03:24:12 -0400

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



Archive powered by MHonArc 2.6.16.

Top of Page