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:34:16 -0800 (PST)
Vincent Rouvreau - Service Expérimentation et Développement
INRIA Saclay
Tel: (+33).1.74.85.42.32
----- Mail original -----
> De: "Vincent Rouvreau [via cgal-discuss]" <[hidden email]>
> À: "Vincent Rouvreau" <[hidden email]>
> Envoyé: Lundi 24 Novembre 2014 17:32:15
> Objet: Re: Help with 'filtration' and 'filtration_with_alpha_values'
>
>
>
> 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
>
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://cgal-discuss.949826.n4.nabble.com/Help-with-filtration-and-filtration-with-alpha-values-tp4659524p4660155.html
>
> To unsubscribe from Help with 'filtration' and
> 'filtration_with_alpha_values', visit
>
View this message in context: Re: Help with 'filtration' and 'filtration_with_alpha_values'
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.