Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL+OpenGL, incorrectly render mesh triangles

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL+OpenGL, incorrectly render mesh triangles


Chronological Thread 
  • From: mikef <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL+OpenGL, incorrectly render mesh triangles
  • Date: Fri, 14 Apr 2017 12:58:41 -0700 (PDT)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
  • Ironport-phdr: 9a23:vGbzXBaS1W4wNxnmKE1QesL/LSx+4OfEezUN459isYplN5qZoM6+bnLW6fgltlLVR4KTs6sC0LuK9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6ybL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjA38G/ZlM9+g6BVoBy8qBNw34HabZqJNPd8ZK7RYc8WSXZfUstXSidPApm8b4wKD+cZOOZYror9qEUArRCjAgSsCuzvyz9VinPq3qA3yOshEQTc0wwhG9ICqmjbrNLwNKoLV+2+0afGzTLGb/xM2Df97pDFchY7rv6XRr1wddTexVMzGAPCi1Wdr5HuMTCN1ukVrmSW7vRsWfixh2MnpQx9uCWjy8kih4XTiY8YxEjI+Th4zYorP9G0Vk52bNC+HJdNuSyXOZF6T8MgTmxupS000KcJuYShcygP0JknxwDQa/iAc4WQ5xLiWuGRIS17hH5/frKwnQ29/lOkyuLiTMW7zFFKri9dntnNsHACyQDT59CaRvZ84EutwyiD2gDd5+1ePEw5m6TWJ4Quz7M+jpYTtF7MHi7ymEX4lq+WcUAk9/Cm6+ToYrTqu4OQOoxvhwHxN6QhgM2/AeAiPgcSWGib/Pyw1Kf/8k3hXLVKkvo2n7HFv5DVP8sbore1DBJU0oY49xm/Eiym0M8DkHkcLFNFfQqHgJLzN1HPJvD4F/a/jE62nDdl3fCVdoHmV57CJ3yGnLb6dqtm8GZdzhAyxJZR/cF6ELYEdffyWUL//IjWAQ5ga1yczOPuCdE73YQbDzHcSpSFOb/f5AfbrtkkJPOBMdcY

I found one bug: didn't normalize the normal vector before setting
glNormal3f().

Now the white triangles are gone, but the holes are still there. It seems
the normals are still the cause:
Any suggestions? Thank you!
<http://cgal-discuss.949826.n4.nabble.com/file/n4662681/Capture.jpg>



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/CGAL-OpenGL-incorrectly-render-mesh-triangles-tp4662670p4662681.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page