Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: orient triangles

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: orient triangles


Chronological Thread 
  • From: Guillaume Damiand <>
  • To:
  • Subject: Re: [cgal-discuss] Re: orient triangles
  • Date: Wed, 07 Nov 2012 08:36:49 +0100

Le 06/11/2012 18:18, johnzjq a écrit :
Is there any simpler solution to it, without knowing the global knowledge
about the polyhedron?

Orientation is a global property.
Indeed, you can build two objects having exactly a same local configuration but with two opposite orientations.

To orient correctly a polyhedron, you can take a face with a given orientation, compute its normal, take a point in the face, translate it along the normal, and test if this point is inside or outside to the polyhedron (counting the number of intersections of a half-line starting from the point and the polyhedron).
Depending on which orientation you want, you conclude if the initial orientation is correct or wrong; then you propagate the correct orientation to all the faces of the polyhedron.

Guillaume





--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/orient-triangles-tp952874p4656161.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



--
===================================================================
Guillaume DAMIAND

CNRS - LIRIS UMR 5205
Université Claude Bernard
Bâtiment Nautibus (710)
43 Boulevard du 11 Novembre 1918
69622 Villeurbanne Cedex (France)
-------------------------------------------------------------------
Tél: +33 (0)4.72.43.26.62 Fax: +33 (0)4.72.43.15.36
Mail:

Web: http://liris.cnrs.fr/guillaume.damiand/
===================================================================


Attachment: smime.p7s
Description: Signature cryptographique S/MIME




Archive powered by MHonArc 2.6.18.

Top of Page