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 14:45:39 -0700 (PDT)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
  • Ironport-phdr: 9a23:XGk5XhFH4OE0WJW2YZ0zY51GYnF86YWxBRYc798ds5kLTJ78pciwAkXT6L1XgUPTWs2DsrQf2raQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDWwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KOTA5/m/JicJ/jqxbrg+uqBNjzIDZe52VOfhkc6/BYd8WWXRNU8BMXCJBGIO8aI4PAvIEPeZZrInyuVUOpga5CAmiC+PuyiJEimP10KAh3OQhFBvJ3A0kH94UrHvUq9D1Ob4UXOuowqfIyjDDYOlX2Tf78IXIdAouruqXUrJ0b8Xd01UgFwTAjliWtIfrPCuV2/wQv2Wa8eZsT/yjhm4ppg1rvzSiyMkhhpPGi48b0lzI6CR0zJgvKdGmSEN2b8SoHIZeuiyULYd7QsEvTmd1sygg0LIGo4S0fC0SxZQn2RHfb/uHfpCN4hPtU+aROzR4iGhjeL2lnBm96kygxfPmWsao11ZKqzJJktjKtn8Tyxze8tWLR/pj8ku7xzqC1w7e5vtZLU06m6fXMZEsz7AompoWq0vDHyv2mEvsjK+Rc0Up4uao6+vnY7n7upORNJR5ig77Mqs0m8y/Bf40PRQJX2ie4ei8zqHs/VXlQLVWif07irXWsJ/AKsQfv6K2Hg5V0p0/5BaiFDemy88VnWIHLVJAYBKIlZLlO1DIIPDiDPewmU6gkDlxx6OOArq0CZrEKj3PkazqYK1mw09a0gs6i95FtLxODbRUJfPwV0G54NLXH0ZhYyS7xu/mDJN20YZICjHHObOQLK6H6QzA3ekoOeTZPII=

I solved the problem.

*Solution 1: *Instead of calucalting the face normal, I use one vertex's
coordinates in glNormal3f, because the ellipsoid is centered in the origin.
However, I still don't know why the original method for calculating the face
normal is wrong.

*Solution 2:* Some holes were rendered previously because I set the radius
bound and distance bound in the mesh criteria too large. Well, my solution
is to reduce the scale of the ellipsoid by one hundredth.

Now it is better:
<http://cgal-discuss.949826.n4.nabble.com/file/n4662682/Capture.jpg>



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



Archive powered by MHonArc 2.6.18.

Top of Page