Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] about calling the function point() through

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] about calling the function point() through


Chronological Thread 
  • From: Kwok Jasper <>
  • To: <>
  • Subject: RE: [cgal-discuss] about calling the function point() through
  • Date: Wed, 4 Feb 2009 13:18:33 +0800
  • Importance: Normal


Thank you for your reply

I have tried several ways to deal with the problem.
And I find out that may be it is related to the fact that I am using the following override class and therefore I cannot use v -> point() directly

template < class GT, class Vb = CGAL::Triangulation_vertex_base_3<GT> >
class Vertex_base_for_ssr
  : public Vb
{.....};



after I have modified the class Vertex_base_for_ssr such that it becom the following

template < class GT, class Vb = CGAL::Triangulation_vertex_base_3<GT> >
class Vertex_base_for_ssr
  : public Vb
{
     Point point()
    {
         return Vb::point()
    }

 //.....some other things here

};

now, with the above modified class "Vertex_base_for_ss",
the code can be compiled without any error.

But may I still here ask if I am using the things in CGAL correctly to achieve
the functionality of v -> point()  
i.e. to get  the point from its vertex handle

Thank you very much

> From:
> To:
> Date: Tue, 3 Feb 2009 18:37:11 +0100
> Subject: Re: [cgal-discuss] about calling the function point() through vertex handle
>
> On Tuesday 03 February 2009 14:12:49 Kwok Jasper wrote:
> > Excuse me.
> >
> > I have used the following in CGAL
> >
> > typedef CGAL::Delaunay_triangulation_3<K1> Triangulations;
> > typedef Triangulations::Vertex Vertex;
> > typedef Triangulations::Vertex_handle Vertex_handle;
> >
> > when I have a vertex handle, say v.
> > I use the following line of code
> >
> > v -> point()
> >
> > However, the compile gives me the following
> >
> > term does not evaluate to a function taking 0 arguments
>
> What is your compiler? With the code sample you gave v->point() should be a
> valid _expression_ of type Vertex_handle. That is the usual way (and probably
> also the only way) to retrieve a point from a vertex handle.
>
> --
> Laurent Rineau, PhD
> Engineer at GeometryFactory
> http://www.geometryfactory.com/
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss


Windows Live Gallery 讓才華綻放,讓全世界看見你的創造。

給我一個身份 We need a name!



Archive powered by MHonArc 2.6.16.

Top of Page