Subject: CGAL users discussion list
List archive
- From: donben <>
- To:
- Subject: [cgal-discuss] Getting indices from a Complex_2_in_triangulation_3
- Date: Sat, 12 Jul 2014 08:14:22 -0700 (PDT)
Hello and thank you for the impressive work on CGAL.
I'm beginning with the library and trying to use the Surface_mesher example.
What I want to do is to get positions and indices to feed VBOs that I can
display with glDrawArray.
Thanks to this post
(http://cgal-discuss.949826.n4.nabble.com/Need-to-write-facets-created-from-Implicit-surface-meshing-td951670.html)
I'm able to get the vertices of the Complex_2_in_triangulation_3 and display
them (nice skull !).
But my indices array seems uncorrect and the resulting displayed triangles
are disordered.
Is there a simple example code to build VBOs adn draw them ?
And how to access normals in the result if they are performed ?
Thank you and sorry for my bad english.
BenoƮt
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Getting-indices-from-a-Complex-2-in-triangulation-3-tp4659553.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Getting indices from a Complex_2_in_triangulation_3, donben, 07/12/2014
- Re: [cgal-discuss] Getting indices from a Complex_2_in_triangulation_3, Sebastien Loriot (GeometryFactory), 07/15/2014
Archive powered by MHonArc 2.6.18.