Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Pb : Incident_Faces

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Pb : Incident_Faces


Chronological Thread 
  • From: "Patrick Hétroy" <>
  • To:
  • Subject: Re: [cgal-discuss] Pb : Incident_Faces
  • Date: Tue, 4 Sep 2007 12:10:00 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=mjLJFTpJehk8Jign6IUafoubExiom2HnQXM+cUFUyxBPqYplJZxKcHbXd8EjrehQBgxHg6hwm1wK60vw9YnrsHBJSF7O26bHo48z4b38tVzsOjmzmJBhxoj3qY+O/5NX97Ili+zbo4/CwBUxhCFN3Iiqz4XmhAfH1oqV95aTyOg=

Hello Tyver,

It's working even it's ZERO. There's no constraint with dimension for this function.
Recheck your vertex coordinates and detail your code if the problem persists.


Patrick Hétroy

2007/9/3, Tyver Ray <>:
Hello all!

I am having a problem with the incident_faces function provided in the Triangulation_2 class.
On the .jpg I send you, you can see 3 triangles, I would like to select the triangle at the up-right of the image with this function.

It does work when the z parameter isn't equal to ZERO for all the vertex, but, when all the vertex have the z parameter equal to WERO it doesn't work because the face_circulator is always NULL !

My code is :

        Face_circulator fc;
        fc = dt.incident_faces ( vertexInCorner );
        Face_circulator done(fc);

        int count = 0;
        if (fc != (CGAL_NULL_TYPE) NULL)
        {
            do
            {
                if( !dt.is_infinite(fc) )
                    count++;
            }
            while (++fc != done);
        }

Do you have an idea of the problem or a way to resolve it ?

In advance, thank you!

Have a nice day,

Tyv




  • Pb : Incident_Faces, Tyver Ray, 09/03/2007
    • Re: [cgal-discuss] Pb : Incident_Faces, Patrick Hétroy, 09/04/2007

Archive powered by MHonArc 2.6.16.

Top of Page