109 QPointF snapped = grid->snap({cx, cy}); |
109 QPointF snapped = grid->snap({cx, cy}); |
110 cx = snapped.x(); |
110 cx = snapped.x(); |
111 cy = snapped.y(); |
111 cy = snapped.y(); |
112 } |
112 } |
113 |
113 |
114 roundToDecimals(cx, 4); |
114 cx = roundToDecimals(cx, 4); |
115 roundToDecimals(cy, 4); |
115 cy = roundToDecimals(cy, 4); |
116 |
116 |
117 // Create the vertex from the coordinates |
117 // Create the vertex from the coordinates |
118 position3d.setCoordinate(axisX(), cx * signX); |
118 position3d.setCoordinate(axisX(), cx * signX); |
119 position3d.setCoordinate(axisY(), cy * signY); |
119 position3d.setCoordinate(axisY(), cy * signY); |
120 position3d.setCoordinate(axisZ(), m_depth); |
120 position3d.setCoordinate(axisZ(), m_depth); |