CGAL/cgal

Basic_viewer example `draw_surface_mesh_vcolor.cpp` doesn't show vertex colors

Closed this issue · 2 comments

Issue Details

The documentation about the Basic_viewer package contains an example, which is supposed to draw an elephant with green and blue triangles at its vertices (Figure 117.3). However, the picture, created by this program, shows this elephant without these triangles - the function vertex_color is called (verified by me) but its result is ignored.

Source Code

Please see Basic_viewer/draw_surface_mesh_vcolor.cpp.

Environment

  • Operating system (Windows/Mac/Linux, 32/64 bits): Ubuntu 64-bit
  • Compiler: g++ 13.3.0
  • Release or debug mode:
  • Specific flags used (if any):
  • CGAL version: 6.0.1
  • Boost version: 1.83
  • Other libraries versions if used (Eigen, TBB, etc.): Qt6

By default vertices are not drawn. Press the V key to show them.

What you call triangles are in fact squares, the default drawing of points using the old openGL api. You can press "CTRL+V" to use spheres instead of squares for the vertices.

The basic viewer has several possibilities to tune the drawing (press H key to see the help).

Sorry for the delay.

Thank you, Guillaume, and sorry for misunderstanding.

The "V" key works fine, as most of other keys.

So, I think, this issue can be closed.