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: "Rafael Roberto" <>
  • To:
  • Subject: Re: [cgal-discuss] consistent cell normals
  • Date: Tue, 8 Jul 2008 08:54:03 -0300
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=OB3GgoNZcH7W6oG8ui2YKQ+8vzfNj4HbcyCC3qY0/7sLpqiegFP+8IN+TIK906ScvF wTzpJA1D2QzT85boJuWMlLDn7XiX1Yv9ibJXsRIFIo1xphYLusyz0UAwUoOaC32LexUi RIWUKiEVQ+9mAi+/HNpkZiRUvmqiajVDNVoW0=

Vincent,

just how Andreas said, if your mesh is a CGAL::Polyhedron, then the faces are oriented consistently and, in every case I SAW, they points outside the surface. It make sense to me that the normal points outside, but I don't know if a CGAL::Polyhedron will always put they normal outside.

Just to guarantee that the normal are outside and you have to invert then to point inside, you can take a vector that start at any point of the triangle and point to the center of the polyhedron. If the angle between the normal and the vector that points to the center is bigger then 90° the normal is really point outside the polyhedron and you must invert it. Because all normal are consistent, you have to do this for just one triangle.


Valeu,
Rafael Roberto



Archive powered by MHonArc 2.6.16.

Top of Page