Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Reverse the orientation of a single face?
- Date: Mon, 19 May 2008 20:35:00 +0200
wrote:
Dear all,
Is there any way to reverse the orientation of a single face (given by a
halfedge handle) in a polygonal mesh?
Now I know how to reverse the orientaions of all faces. This can be achieved
by calling:
void Polyhedron_3<..>.inside_out () ------ reverses facet orientations
How do I deal with a single face?
Hi Kevin,
What would be the meaning of this? Faces must be oriented in a consistent
way, that is two faces sharing an edge, must be hooked up with two
opposite halfedges. So the orientation of one face implies the orientation
of the neighbor faces, and changing the orientation of one face, does
not really make sense.
What you can do is have an adapter layer, add a boolean flag to your Face
type,
and write an iterator adaptor that when you call operator++ for a halfedge
circulator internally calls operator--
andreas
- Reverse the orientation of a single face?, kevin . kai . xu, 05/19/2008
- Re: [cgal-discuss] Reverse the orientation of a single face?, Andreas Fabri, 05/19/2008
- Re: [cgal-discuss] Reverse the orientation of a single face?, Kevin Xu, 05/20/2008
- Re: [cgal-discuss] Reverse the orientation of a single face?, Andreas Fabri, 05/19/2008
Archive powered by MHonArc 2.6.16.