Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Adapting Point Set Processing demo
- Date: Tue, 19 Jun 2012 19:44:43 +0200
Just by curiosity, why aren't you using the Triangulation_3 demo?
Sebastien.
On 06/19/2012 05:55 PM, hugodelgado wrote:
Hi, i'm having trouble adapting the Point Set Processing demo to my needs.
I'm trying to translate a Point_set_3 that i've previously created from a
file.
To translate the point set i've used the following code, that i create
inside the Point_set_3.h file:
std::vector<UI_point> newOne;
Kernel::Aff_transformation_3 toCentroid(CGAL::TRANSLATION,
Vector(m_barycenter,CGAL::ORIGIN));
std::transform(begin(), end(), std::back_inserter(newOne), toCentroid);
The problem is that i'm able to translate the original point_set to a vector
of UI_Points, but i'm don't know how to create a new point_set from the
translated vector..
I would like to have a new Point_set_3 with the translated points in order
to use it in the demo.
Thanks in advance
Hugo
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Adapting-Point-Set-Processing-demo-tp4655265.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Adapting Point Set Processing demo, hugodelgado, 06/19/2012
- Re: [cgal-discuss] Adapting Point Set Processing demo, Sebastien Loriot (GeometryFactory), 06/19/2012
- [cgal-discuss] Re: Adapting Point Set Processing demo, hugodelgado, 06/20/2012
- Re: [cgal-discuss] Re: Adapting Point Set Processing demo, Sebastien Loriot (GeometryFactory), 06/20/2012
- [cgal-discuss] Re: Adapting Point Set Processing demo, hugodelgado, 06/22/2012
- Re: [cgal-discuss] Re: Adapting Point Set Processing demo, Philipp Möller, 06/22/2012
- [cgal-discuss] Re: Adapting Point Set Processing demo, hugodelgado, 06/22/2012
- Re: [cgal-discuss] Re: Adapting Point Set Processing demo, Sebastien Loriot (GeometryFactory), 06/20/2012
- [cgal-discuss] Re: Adapting Point Set Processing demo, hugodelgado, 06/20/2012
- Re: [cgal-discuss] Adapting Point Set Processing demo, Sebastien Loriot (GeometryFactory), 06/19/2012
Archive powered by MHonArc 2.6.18.