Skip to content

Draw grid label coordinates, allow custom change of grid density.

Janek Kozicki requested to merge denserGridSceneRadius into master

In some of my older code I had a modification to draw the grid coordinates. Here's an excerpt from help window (press h to see help window ;)

setKeyDescription(Qt::Key_Minus,"Make grid less dense 10 times and disable automatic grid change");
setKeyDescription(Qt::Key_Plus, "Make grid more dense 10 times and disable automatic grid change");
setKeyDescription(Qt::Key_Period,"Toggle grid subdivision by 10");
setKeyDescription(Qt::Key_Comma,"Toggle display coordinates on grid");
setKeyDescription(Qt::Key_G & Qt::ShiftModifier ,"Hide grid and enable automatic grid change.");

scr_0217

To allow having a denser grid in a smaller region I also have added optional parameter to yade.qt.center(someRadius) so that scene can be centered with non-automatic, custom radius.

enjoy! :)

Edited by Janek Kozicki

Merge request reports

Loading