84 { |
84 { |
85 // Find the top left corner of the grid |
85 // Find the top left corner of the grid |
86 Vertex topLeft = currentCamera().idealize(currentCamera().convert2dTo3d({0, 0})); |
86 Vertex topLeft = currentCamera().idealize(currentCamera().convert2dTo3d({0, 0})); |
87 Vertex bottomRight = currentCamera().idealize(currentCamera().convert2dTo3d({width(), height()})); |
87 Vertex bottomRight = currentCamera().idealize(currentCamera().convert2dTo3d({width(), height()})); |
88 qreal gridSize = grid()->coordinateSnap(); |
88 qreal gridSize = grid()->coordinateSnap(); |
89 glEnable(GL_LINE_STIPPLE); |
89 // glEnable(GL_LINE_STIPPLE); |
90 glBegin(GL_LINES); |
90 glBegin(GL_LINES); |
91 |
91 |
92 switch (grid()->type()) |
92 switch (grid()->type()) |
93 { |
93 { |
94 case Grid::Cartesian: |
94 case Grid::Cartesian: |