GillesDebunne / libQGLViewer

libQGLViewer is an open source C++ library based on Qt that eases the creation of OpenGL 3D viewers.
Other
241 stars 94 forks source link

Toggle grid display and resize by code #60

Closed yvanblanchard closed 1 year ago

yvanblanchard commented 1 year ago

Hello,

do you know how to toggle on/off display of the Grid (by default, done by key "G"). And also, How to change the grid settings (number of lines, width, etc).

thank you.

GillesDebunne commented 1 year ago

Hello and sorry for the late response.

There are toggleGridIsDrawn() and setGridIsDrawn methods in qglviewer.h to do that.

There is no way to customise the drawing of the grid, but the code can easily be duplicated and customised as needed.