I am using CGAL for point cloud processing, and generating mesh out of it using Scale-Space reconstruction.
I recently require to save color and normal information. So, I used boost::tuple(Point_3, Vector_3, CGAL::Color)
for filters: simplification, outlier removal and normal estimations/orientation. Now triangulating the cloud using Scale-Space reconstruction is only accepting vector of points, not the tuple I have created.
typedef CGAL::Scale_space_surface_reconstruction_3< Kernel > Reconstruction;
Reconstruction reconstruct;
reconstruct.insert( points.begin(), points.end());
//Error if points is defined as vector<PointNormalColorTuple>
//Works if points are vector<Point_3>
//There is no parameter in insert and reconstruct_surface, where I can define property map:
//CGAL::Nth_of_tuple_property_map<0,PointNormalColorTuple>()
I cannot copy data in a new vector<Point_3>
as color information will be lost.
Any suggestions would be helpful.