Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] check halfedge_handle for null value

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] check halfedge_handle for null value


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] check halfedge_handle for null value
  • Date: Tue, 30 Mar 2010 09:38:55 +0200

pascal8361 wrote:
Hello

I have some halfedge_handles and through proceeding they should be set.

But if some conditions are not valid this might not happen, so I want to
check for that.

....
Halfedge_handle handle;

if(condition)
handle = some_existing_handle;
else
nothing happens;

if (handle)
do something
else
something else

is there a way to do this??



If I remember well, you can do

if (handle!=Halfedge_handle())
do something
else
something else


S.



Archive powered by MHonArc 2.6.16.

Top of Page