Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: Jane Tournois <>
  • To:
  • Subject: Re: [cgal-discuss] problem/bug with CGAL::Polygon_mesh_processing::is_outward_oriented()
  • Date: Thu, 6 Apr 2017 17:35:00 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:iF3Vqh/oWod8Yv9uRHKM819IXTAuvvDOBiVQ1KB20eIcTK2v8tzYMVDF4r011RmSDNmds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2e2//5Lebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMsrrQ7ApQjSi97lkRwP0iCkJMD459XvYis12jKlGpB6sqBhyz4vSbYqINvRxY7ndcMsHS2RfUMZfVy9PDI2yYIQADeUOIelWopLhp1YNtxayGRWgCe3txzJOm3T43bc60+MkEQze2AIvBdQOv2rJp9vrM6cSTPq1zK/PzTXCdPNdxDDw6IrSfRAnv/6AR65wcc3MyUk1EQPFiVSQqZf+MjOayOsNtG2b4PR8VeK1i28npRt+rSSzxscrkInIhpgZxUzD9SV82Ys4I8CzRkB8Yd6hCpRQtieaOpNrTcM4RGFooD01yroJuJKhYCcKz5EnywbQa/OZdIiI5wzsVPqLITZ4inJqYq6whwq18Ui6yuzwTNW70FFPridDj9LCtWgN2gTO5sWESfZx5Fqt1DeP2gzJ5OxJIlo4mbTVJpI/2rI9mZsevV7eEiL1lkj6lqCbe0E+9uS15enqbbPrrYKGOYBukAHxKKEul9S/AesmNggOWHCW9fm82bH5+E35R6hGguczkqbDsZDaId0XpqmkAw9JyIoj7Ai/Dze83NQeg3YHMEpJeBOBj4f3J1HDOO30APS8jli2jTtmxvDLMqfvD5jONHTPjrnscahl505Z0gUzzNRf55xOCrEGJfL+Qk3xu8beDhAnKQC03+HnCMhn1oMYXmKPA7SZPbjdsVCW4eIvJveDZJMPuDf9Jfgq/eLhjWM+mV8Hfailx4cYaHe9Hvh+OUWWfWLsgssdEWcNpgcxUOPqh0eGUTJKenmyXrk86S0mCIK9FofOXZutgbyE3CejBJJafGFGClaWEXfpbYqIQfkMaDjBavNmxzcLXLzkR4463gy1ryf7zaBmJ6za4H42r5Xmgfp84eCbqRYv7zpzDt/Vh2OESWwygmQVXTkx3btXrkF6z1qfy7l2ivdEEsZCofhOV1FpZtbn0+VmBoWqCUr6ddCTRQP6E9g=

Hi Hugo,

thanks for your report. I am having a look at it.

Best,

Jane.


Le 06/04/2017 à 11:27, Hugo Ledoux a écrit :
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


--
Jane Tournois, PhD
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/




Archive powered by MHonArc 2.6.18.

Top of Page