Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Properly oriented Polyhedron_3 vertex normals for rendering with OpenGL

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Properly oriented Polyhedron_3 vertex normals for rendering with OpenGL


Chronological Thread 
  • From: Petros Kataras <>
  • To:
  • Subject: Re: [cgal-discuss] Properly oriented Polyhedron_3 vertex normals for rendering with OpenGL
  • Date: Sun, 24 Apr 2016 12:44:17 +0300
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:nK+WMx82FLKx//9uRHKM819IXTAuvvDOBiVQ1KB92uscTK2v8tzYMVDF4r011RmSDdWdtKkP0rWempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lSsiN1I/uiKibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYhvQ66sQVUbnmZ79qCvtDHTE+OiY04tfqvF/NV0yU934EWyIXlBRPRAPK5RW/UpbquTbhrblB33yRMsTyCLw1Qj+/9LxDSRnyiS5BOSRq3nvQj5lIgb5BpwnphBVjypTde8nBPaF4d6TbVdwfTGtFGM1WUnoSUcuHc4ITAr9Zbq5jpI7nqg5WoA==

Hey,

I basically did exactly the same as in http://doc.cgal.org/4.7/Polygon_mesh_processing/index.html#PMPNormalComp.

For me this was enough to get back properly oriented normals.

HTH,
Petros


Thanks for your help. The way you mentioned did help, and I got some values
and visualised them. Unfortunately, the result does not look right. The left
image is the result and the right is the one computed by MeshLab.

<http://cgal-discuss.949826.n4.nabble.com/file/n4661864/11.png>
<http://cgal-discuss.949826.n4.nabble.com/file/n4661864/12.png>

I wonder if it is because of some other mistakes I made in my code or just
because of this function. Can we get reasonable normals with
compute_vertex_normal functions? And there is another overload of this
function with one more parameter, called "NamedParameters". Would this
matter?



--
View this message in context: http://cgal-discuss.949826.n4.nabble.com/Properly-oriented-Polyhedron-3-vertex-normals-for-rendering-with-OpenGL-tp4661567p4661864.html
Sent from the cgal-discuss mailing list archive at Nabble.com.

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






Archive powered by MHonArc 2.6.18.

Top of Page