Subject: CGAL users discussion list
List archive
- From: Vincent Rouvreau <>
- To:
- Subject: Re: [cgal-discuss] Help with 'filtration' and 'filtration_with_alpha_values'
- Date: Mon, 24 Nov 2014 08:32:15 -0800 (PST)
Replace your piece of code (after //i'm not sure if this is the correct way
to access the filtration) with:
std::list<CGAL::Object> objects;
as.filtration(std::back_inserter(objects));
std::cout << "filtration returns : " << objects.size() << " objects" <<
std::endl;
std::list<CGAL::Object>::iterator pos;
pos = objects.begin();
while (pos != objects.end()){
pos++;
}
You can see with as.get_alpha_shape_cells/facets/edges that your alpha shape
has been modified.
For filtration_with_alpha_values, you can try something like this :
std::vector<CGAL::Object> the_objects;
std::vector<Alpha_shape_3::FT> the_ft;
typedef CGAL::Dispatch_output_iterator<
CGAL::cpp11::tuple<CGAL::Object, Alpha_shape_3::FT>,
CGAL::cpp11::tuple<std::back_insert_iterator<
std::vector<CGAL::Object> >,
std::back_insert_iterator<
std::vector<Alpha_shape_3::FT> >
> > Dispatch;
Dispatch disp = CGAL::dispatch_output<CGAL::Object, Alpha_shape_3::FT>(
std::back_inserter(the_objects),
std::back_inserter(the_ft));
as.filtration_with_alpha_values(disp);
You can see with as.get_alpha_shape_cells/facets/edges that your alpha shape
has been modified.
Hope this can help,
Regards
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Help-with-filtration-and-filtration-with-alpha-values-tp4659524p4660155.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- Re: [cgal-discuss] Help with 'filtration' and 'filtration_with_alpha_values', Vincent Rouvreau, 11/24/2014
- Re: [cgal-discuss] Help with 'filtration' and 'filtration_with_alpha_values', Vincent Rouvreau, 11/24/2014
Archive powered by MHonArc 2.6.18.