Skip to content

Commit

Permalink
More direct prespective view
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoffland committed Jan 15, 2019
1 parent d6b1621 commit 44f2751
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,7 @@
- Show feed in project units. (hpmachining)
- Handle long or even infinite GCode programs better.
- Implemented M70-M73
- More direct prespective view.

## v1.1.2:
- Fixed ``Could not save project: Invalid file tab index 0``. #225
Expand Down
3 changes: 2 additions & 1 deletion src/camotics/view/ViewPort.cpp
Expand Up @@ -179,6 +179,7 @@ void ViewPort::updateRotation(int x, int y) {
if (!rotationQuat.isReal()) resetView();

rotationQuat.toAxisAngle().toGLRotation(rotation);
LOG_DEBUG(1, rotationQuat);
}


Expand All @@ -196,7 +197,7 @@ void ViewPort::updateTranslation(int x, int y) {

void ViewPort::resetView(char c) {
switch (c) {
case 'p': rotationQuat = QuaternionD(-0.45, -0.25, -0.5, 0.71); break;
case 'p': rotationQuat = QuaternionD(-0.4, 0, 0, 0.9); break;
case 't': rotationQuat = QuaternionD(0, 0, 0, 0.9999); break;
case 'b': rotationQuat = QuaternionD(0, 1, 0, 0.0001); break;
case 'F': rotationQuat = QuaternionD(-0.71, 0, 0, 0.71); break;
Expand Down

0 comments on commit 44f2751

Please sign in to comment.