Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to get the weight of a Regular_triangulation_3::vertex_handle?

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,

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.



Archive powered by MHonArc 2.6.16.

Top of Page