Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] How to get the weight of a Regular_triangulation_3::vertex_handle?
Chronological Thread
- From: Song Lin <>
- To:
- Subject: Re: [cgal-discuss] How to get the weight of a Regular_triangulation_3::vertex_handle?
- Date: Thu, 06 May 2010 16:22:03 +0800
Thanks! It works.
Lin
在 2010-05-06四的 09:58 +0200,Sebastien Loriot (GeometryFactory)写道:
> Song Lin wrote:
> > Hi,
> >
> > I have build a Regular_triangulation_3 based on the example
> > "examples/Triangulation_3/regular_3.cpp":
> >
> > typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
> > typedef CGAL::Regular_triangulation_euclidean_traits_3<K> Traits;
> > typedef Traits::RT Weight;
> > typedef Traits::Bare_point Point;
> > typedef Traits::Weighted_point Weighted_point;
> > typedef CGAL::Regular_triangulation_3<Traits> Rt;
> > typedef Rt::Vertex_iterator Vertex_iterator;
> > typedef Rt::Vertex_handle Vertex_handle;
> >
> > For a Vertex_handle, I can get Vertex_handle->point(), but don't know
> > how to get "Vertex_handle->weight()". Anyone can help me about this?
> > Or, is there any "weight" information in "Rt::Vertex_handle"?
> >
> > Best regards,
> > Lin
> This is the point which is weighted. Try:
>
> Vertex_handle->point().weight();
>
> S.
>
--
Center of Computational and Systems Biology,
Institute of Biophysics, CAS.
15 Datun Road, Chaoyang District
Beijing, 100101
P.R.China
- [cgal-discuss] How to get the weight of a Regular_triangulation_3::vertex_handle?, Song Lin, 05/06/2010
- Re: [cgal-discuss] How to get the weight of a Regular_triangulation_3::vertex_handle?, Sebastien Loriot (GeometryFactory), 05/06/2010
- Re: [cgal-discuss] How to get the weight of a Regular_triangulation_3::vertex_handle?, Song Lin, 05/06/2010
- Re: [cgal-discuss] How to get the weight of a Regular_triangulation_3::vertex_handle?, Sebastien Loriot (GeometryFactory), 05/06/2010
Archive powered by MHonArc 2.6.16.