Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] consistent cell normals

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] consistent cell normals


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] consistent cell normals
  • Date: Tue, 08 Jul 2008 11:42:00 +0200

dfwang wrote:
Dear CGALers

For a given closed triangle mesh, how to make sure that the normal of each triangle points to the inside of the closed surface in CGAL?

Any comments are appreciated.

Best wishes,
Vincent

Hi Vincent,

if the mesh is in a CGAL::Polyhedron already then the faces are
oriented consistently already, so determining inside/outside for
one face plus propagation should do the job.

If you just have a triangle soup (std::list<CGAL::Triangle_3<K>>)
then you first have to orient your triangles consistently.
There is no out-of the box function in CGAL. It would be a good idea
though.

andreas



Archive powered by MHonArc 2.6.16.

Top of Page