Subject: CGAL users discussion list
List archive
- From: Monique Teillaud <>
- To:
- Subject: Re: [cgal-discuss] about calling the function point() through
- Date: Wed, 04 Feb 2009 09:40:13 +0100
Hi
Just a few words to mention that the manual gives several ways to tune the Vertex base to the user's needs.
see 31.5.3 in the user manual for explanations, there are examples too.
Monique Teillaud
Kwok Jasper wrote:
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
> >
> > t ypedef 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 ?????,??????????? <http://>
*
------------------------------------------------------------------------
*?????? We need a name! <http://hk.msn.com/name>*
- [cgal-discuss] about calling the function point() through vertex handle, Kwok Jasper, 02/03/2009
- RE: [cgal-discuss] about calling the function point() through, Kwok Jasper, 02/03/2009
- Re: [cgal-discuss] about calling the function point() through vertex handle, Laurent Rineau (GeometryFactory), 02/03/2009
- RE: [cgal-discuss] about calling the function point() through, Kwok Jasper, 02/03/2009
- Re: [cgal-discuss] about calling the function point() through, Laurent Rineau (GeometryFactory), 02/04/2009
- RE: [cgal-discuss] about calling the function point() through, Kwok Jasper, 02/04/2009
- Re: [cgal-discuss] about calling the function point() through, Monique Teillaud, 02/04/2009
- RE: [cgal-discuss] about calling the function point() through, Kwok Jasper, 02/03/2009
Archive powered by MHonArc 2.6.16.