Subject: CGAL users discussion list
List archive
- From: Nader SALMAN <>
- To:
- Subject: Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set
- Date: Tue, 08 Dec 2009 18:57:12 +0100
A correction , here you go : // kernel typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; // Simple geometric types typedef Kernel::FT FT; typedef Kernel::Point_3 Point; typedef Kernel::Vector_3 Vector; // Point with normal vector stored in a std::pair. typedef std::pair<Point, Vector> PointVectorPair; typedef std::vector<PointVectorPair> PointList; PointList points // Type of input point set // simplification by clustering using erase-remove idiom double cell_size = 0.001; PointList::iterator unwanted_points_begin = CGAL::grid_simplify_point_set(points.begin(), points.end(), CGAL::First_of_pair_property_map<PointVectorPair>(), cell_size); // delete unwanted points points.erase(unwanted_points_begin , points.end()); // Optional: after erase(), use Scott Meyer's "swap trick" to trim excess capacity PointList(points).swap(points); Sorry for the earlier message, Cheers, Nad. Nader SALMAN Nader SALMAN a écrit : Hi Tina, |
- [cgal-discuss] error in using CGAL::grid_simplify_point_set, tina rumi, 12/08/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, Nader SALMAN, 12/08/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, Nader SALMAN, 12/08/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, tina rumi, 12/08/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, tina rumi, 12/08/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, Laurent Saboret, 12/09/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, Nader Salman, 12/09/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, tina rumi, 12/09/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, Nader SALMAN, 12/10/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, tina rumi, 12/10/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, Nader SALMAN, 12/11/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, tina rumi, 12/11/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, tina rumi, 12/09/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, Nader Salman, 12/09/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, tina rumi, 12/08/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, Nader SALMAN, 12/08/2009
- Re: [cgal-discuss] error in using CGAL::grid_simplify_point_set, Nader SALMAN, 12/08/2009
Archive powered by MHonArc 2.6.16.