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: Fri, 14 Apr 2017 17:54:07 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:ZujsHhGsUcdurc1OoqhWeJ1GYnF86YWxBRYc798ds5kLTJ7yosywAkXT6L1XgUPTWs2DsrQf2raQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDWwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VjO/4ad2Ux/okDkIOCIl8G/ZjcxwibhUoBOnpxdix4LZb4WYOP94c6jAf90VWHBBU95MWSJfDIOyb4gBAeQPMulXrYbyu1QAoACiBQSvHu7j1iNEi3H00KA8zu8vERvG3AslH98WtHrbttP1O7kPWu6ry6nI0C/Db/VR2Tf884jDbxcsofOWUrJ2b8Xd01UvFwTYjlWKr4zlODKV1v8WvmiU8eVgUuevhHA7qwFrojmvyN0jhZXVhoIS0FDF9T91z5oyJd29UUN2Z8OvHpVXtyGfLYR2Q8UiTnlnuCY71r0GuYO7czMQxJs7wB7fbuSLfJWS4hLkTOaeOjB4hX1/dL2jgBay9FCsyuLiWcmz1VZFsDZFksPMt3ADzRPc9tSHSvxn/kahwzqAywfT6uRCLEsplqTbM4YszqMym5cQq0jOECH7lF/rgKOKeUgo4Pak5/rob7n+qZKRNpV4hhz9P6kggMCyDuA1PhITU2WV9umx0qDo81fjT7VQlPI2l7HUsJDEKsQfoa60GxJZ34c55xa6CDeqzc4UnXwdI1JEfBKLlo/pO0zSIPziCve/nVSsnC1tx//YIr3tGpTNLn7dn7f9Zbtx9kxRxQkpwd1R6Z9YEKwNLO78V0PrqtDUEBA0PxSxw+n9CdV90o0eWXiIAq+cKK7Ss0WH5uQxLOWWeI8Vvyv9K+Ij5/7pjH85gkQQfaa30psQbXC3AOhmI1+ZYHrimNgODXsKvg0kTO3qklGNTTlTZ3OqU6Im+j47EJ6mDZvERo21nLOB0z20HplPam9bC1CMCmvnd5ifW/cXcy+SOc9gkjkcVbe7UYMh1BeutBX7y7V9NObU9DcY5trf041+6OTX0B0z7jdpFN+10meXTmgykHlbaSUx2fVdqEpwgmuEzLJ+hP1DXYhR7vVEFBs9KITayO1hI9//XQfMYs2YRl+tXtK8EHc6SddnkIxGWFp0B9j31kOL5CGtGbJAy+2G
Hi Hugo,
we have created a pull request [1] that should fix this function. It will be tested in the coming days before it is integrated to the master branch, but you can already experiment with it.
Best regards,
Jane.
[1] https://github.com/CGAL/cgal/pull/2057
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/
- [cgal-discuss] problem/bug with CGAL::Polygon_mesh_processing::is_outward_oriented(), Hugo Ledoux, 04/06/2017
- Re: [cgal-discuss] problem/bug with CGAL::Polygon_mesh_processing::is_outward_oriented(), Jane Tournois, 04/06/2017
- Re: [cgal-discuss] problem/bug with CGAL::Polygon_mesh_processing::is_outward_oriented(), Jane Tournois, 04/06/2017
- Re: [cgal-discuss] problem/bug with CGAL::Polygon_mesh_processing::is_outward_oriented(), Jane Tournois, 04/14/2017
- Re: [cgal-discuss] problem/bug with CGAL::Polygon_mesh_processing::is_outward_oriented(), Hugo Ledoux, 04/21/2017
- Re: [cgal-discuss] problem/bug with CGAL::Polygon_mesh_processing::is_outward_oriented(), Jane Tournois, 04/06/2017
Archive powered by MHonArc 2.6.18.