Skip to Content.
Sympa Menu

cgal-discuss - Pb : Incident_Faces

Subject: CGAL users discussion list

List archive

Pb : Incident_Faces


Chronological Thread 
  • From: "Tyver Ray" <>
  • To:
  • Subject: Pb : Incident_Faces
  • Date: Mon, 3 Sep 2007 10:55:51 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=MFZxYqLzUTTcBjUeDo0lPNAAj+p8DQEByscRqcEYkpxGakiv4r/8u2tPWpR5p8YsqbHptAYdF2j00BYAr0wxqFgpKEdIUg5d6SLRYS2FDsPJKGcXtU3PH36wGXbYF3aN1/jOTumVKmEuLqd+qdoWWmWjlQm2Aud8HzFAc8G10sk=

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

Attachment: screenshot.JPG
Description: JPEG image




Archive powered by MHonArc 2.6.16.

Top of Page