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: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] How to get the weight of a Regular_triangulation_3::vertex_handle?
- Date: Thu, 06 May 2010 09:58:15 +0200
Song Lin wrote:
Hi,This is the point which is weighted. Try:
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
Vertex_handle->point().weight();
S.
- [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.