Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] From vertex pointers to vertex handles?

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] From vertex pointers to vertex handles?


Chronological Thread 
  • From: "Amir Vaxman" <>
  • To: <>
  • Subject: RE: [cgal-discuss] From vertex pointers to vertex handles?
  • Date: Mon, 23 Mar 2009 11:10:55 +0200

Wouldn't

Vertex v=*pv

Create a copy of the vertex?

-----Original Message-----
From: Daniel Duque
[mailto:]

Sent: Monday, March 23, 2009 11:11 AM
To:

Subject: Re: [cgal-discuss] From vertex pointers to vertex handles?

On Sunday 22 March 2009 13:33:29 Tom Kazimiers wrote:
> If I now want to call a method on the mesh like incident_vertices (
> Vertex_handle v) I have to get a vertex_handle out of the pointer to the
> vertex.

Can't you just do:

Vertex_handle vh=&(*pv);

where pv is a pointer to a vertex?

Looks funny, but it may work.

Alternatively:

Vertex v=*pv;
Vertex_handle vh=&v;

Best,

Daniel

--
Nueva dirección de e-mail!

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss




Archive powered by MHonArc 2.6.16.

Top of Page