Subject: CGAL users discussion list
List archive
- From: "Shi Yan" <>
- To:
- Subject: Re: [cgal-discuss] how to check if a halfedge handle is valid?
- Date: Thu, 14 Aug 2008 12:00:54 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=MA9FdI3jyrnK1Unk73JW9Zx9/UQkAUtKEoqN1s1y3G8CLodB44rcb1oTMa9ih9yQMi GAeqRAoTdVJ9LoTWLyTh/teiIj6J+Ro2W76BLHfeKATIc24Y+us4IhCEl0hsAtZLs4dg RxsRFUr1eUNljuQH2Wuab4vgV6Ig7j8EHxZsY=
no, this doesn't work.
say i have a halfedge handle h which points to a valid half-edge.
and then i want to do some operations on the geometry object, for
example join_vertex. these operations will eliminate some halfedges
and may be h is one of them.
so after these operations, can i check if h is still valid?
the way you suggested will not work, because initially the invalid_he
equals to 0x00000000,
however h is not 0x00000000, but some value that i assigned at the beginning.
even the halfedge pointed by h is not valid, h is not 0x00000000.
is there any way to solve this problem?
thank you.
On Wed, Aug 13, 2008 at 3:25 PM, Eric Berberich
<>
wrote:
> Shi Yan wrote:
>>
>> hello guys,
>>
>> i have a halfedge handle which i need to check its validity after a
>> set of operations, but i don't know how.
>>
>> can i do something like if( h == NULL ) , where h is the halfedge handle?
>>
>> thank you.
>
> In Arrangements we have:
>
> Halfedge_handle invalid_he;
>
> if (h == invalid_he) {
> // ... my code
> }
>
> eriC
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
- [cgal-discuss] how to check if a halfedge handle is valid?, Shi Yan, 08/14/2008
- Re: [cgal-discuss] how to check if a halfedge handle is valid?, Eric Berberich, 08/14/2008
- Re: [cgal-discuss] how to check if a halfedge handle is valid?, Shi Yan, 08/14/2008
- Re: [cgal-discuss] how to check if a halfedge handle is valid?, Eric Berberich, 08/14/2008
Archive powered by MHonArc 2.6.16.