Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] problem/bug with CGAL::Polygon_mesh_processing::is_outward_oriented()

Subject: CGAL users discussion list

List archive

[cgal-discuss] problem/bug with CGAL::Polygon_mesh_processing::is_outward_oriented()


Chronological Thread 
  • From: Hugo Ledoux <>
  • To:
  • Subject: [cgal-discuss] problem/bug with CGAL::Polygon_mesh_processing::is_outward_oriented()
  • Date: Thu, 6 Apr 2017 11:27:56 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:Nn2eKx9cjzGiKP9uRHKM819IXTAuvvDOBiVQ1KB42uIcTK2v8tzYMVDF4r011RmSDNmds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2e2//5Lebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMsrrQ7ApQjSi97lkRwP0iCkJMD459XvYis12jKlGpB6sqBhyz4vSbYqINvRxY7ndcMsaS2RPXchfSjJPDZ+zYYYUE+oBJPxVo5Xhq1cSrxazAxSnCuP1yj9Pg3/7xa800/kuEQHBwQcuGcwBv2nTrNXoO6YZTOe4zKnSwTXHcfxZxDD96JXHcx06vfGMQK9/ftTVyUkhCwPJlFOQqYj8Mj6Ty+8DvW+b7+96WuKujW4qsxx+oiKoxsc0kYbJgY0UxkrY+iV+xYY4I8CzRk1jYdO8DZdduT2WO5FrTs4jXm1kojs2x7MbtZKhfCUG0IorywLbZvCdcIWF4gjvWPiMLTp2nn5od7ayihCv+ka60OL8TNO70FNSoypFjNbMsncN2gTW6sedS/t9+lyh1iiV1wDN6+FLPV47mbDHK54837E/iJ4TsUrfHiPsnkX2iLeadkQi+ue29+Tqeqjqq5GAO4Nulw3zM7kiltaiDek2LwQCRWiW9fy51LL5/E35RLtKjucxkqncqJ3aJd4XpqqnDABI1YYj9hm+Aiy60NQFgHYIMlZFeBybj4TzPVHOJOj0De2jjFS0jDdr2/fGM6X9DZXCNHfDlK7tcqt8605H1AUz0Mtf54lPB7EaIPPzX1fxu8bCAh84NQy02efnB89n2oMQQ2LcSpOeZajduFvN6uM0KPSXf6cUviz8Ir4r/a3Al3g8zH8Acq7h+ZYbb22oVqBmZUGUbX3xkv8dDGsHugQiCuru3g7RGQVPbmq/CvpvrgowD5irWNuSSw==

Greetings,

I have one mesh whose normals are pointing outwards, but the function
CGAL::Polygon_mesh_processing::is_outward_oriented() returns
otherwise.

I have checked the code and the average of the normals of the faces
incident to the min-vertex is used, which conceptually I doubt should
work… And it doesn’t work in my case (unless I made a mistake
somewhere), you can download my OFF file, along with the code I used,
there:
https://www.dropbox.com/sh/49as9yt139v6kxk/AABXI3Nh4ZfqCEDWHyv8Q-Zja?dl=0

If other ways to compute the normal were used (eg by using the area of
the face as a weight), then the x-component of the vector could be
negative (as is used by cgal), but I am wondering if that would always
work. I think not.

Any comments appreciated, cheers,
Hugo Ledoux



Archive powered by MHonArc 2.6.18.

Top of Page