Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Create OpenGL VBOs VAOs from CGAL::Polyhedron_3
- Date: Tue, 1 Nov 2016 08:58:37 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:o1jDxx2BiyWsO+J2smDT+DRfVm0co7zxezQtwd8ZsegQKvad9pjvdHbS+e9qxAeQG96KsbQU06GP6v6ocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+kQMiC14/ujr760qaQSj0AvCC6b7J2IUf+hiTqne5Sv7FfLL0swADCuHpCdrce72ppIVWOg0S0vZ/or9YwuxhX7vku/soFXaThdLkjVpRZCi4nOiY7/p7Frx7GGEG063EVSXkXnxwAJw/f7RbmFtfevyz/u/ZnyQeTNtHxV6F1E3z29KNsUh7vlGECMxY29WjWjop7i6cN80HpnAB234OBONLdD/F5ZK6IJd4=
- Organization: GeometryFactory
Indeed, you have to copy the coordinates.
You can have a look at the code in the Polyhedron demo
to see how we handle it (See Scene_polyhedron_item).
Note that there is also a similar class for Surface_mesh
(Scene_surface_mesh_item).
Sebastien.
On 10/30/2016 12:45 PM, Ιασων Μανωλας wrote:
Hello everyone,
I want to render a cgal polyhedron using opengl vaos and vbos. I found
this <https://gist.github.com/tomykaira/5730673> method online and I was
wondering whether or not it is necessary to first copy from polyhedron
to vectors (vertices, normals,faces) and than render or if you can
directly refer to the polyhedron (avoiding to copy).
Regards,
Iason Manolas
- Re: [cgal-discuss] Create OpenGL VBOs VAOs from CGAL::Polyhedron_3, Sebastien Loriot (GeometryFactory), 11/01/2016
Archive powered by MHonArc 2.6.18.