Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Reverse the winding of a polygon mesh?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Reverse the winding of a polygon mesh?


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] Reverse the winding of a polygon mesh?
  • Date: Mon, 05 May 2008 09:36:33 +0200


wrote:
Hi, all

I got a polygon mesh (stored as a Polygon_3) with wrong winding. Is there any
way to reverse its winding?

I'm thinking of reversing all halfedges in the mesh one by one. Is it
possible to reverse the orientation of a halfedge?

Thank you.

Hi Kevin,

This one should do it:

void Polyhedron_3<..>.inside_out () reverses facet
orientations (incl. plane equations if supported).


andreas



Archive powered by MHonArc 2.6.16.

Top of Page