Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
5b87f5f3
Commit
5b87f5f3
authored
Jun 10, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More cleanup in gcview
parent
48642be8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
gcview.py
printrun/gcview.py
+1
-13
No files found.
printrun/gcview.py
View file @
5b87f5f3
...
...
@@ -245,7 +245,6 @@ class GcodeViewPanel(wxGLPanel):
self
.
dist
=
max
(
build_dimensions
[
0
],
build_dimensions
[
1
])
else
:
self
.
dist
=
200
self
.
transv
=
[
0
,
0
,
-
self
.
dist
]
self
.
basequat
=
[
0
,
0
,
0
,
1
]
self
.
mousepos
=
[
0
,
0
]
...
...
@@ -296,7 +295,6 @@ class GcodeViewPanel(wxGLPanel):
if
self
.
initpos
==
None
:
self
.
initpos
=
event
.
GetPositionTuple
()
else
:
#print self.initpos
p1
=
self
.
initpos
self
.
initpos
=
None
p2
=
event
.
GetPositionTuple
()
...
...
@@ -326,18 +324,8 @@ class GcodeViewPanel(wxGLPanel):
else
:
p1
=
self
.
initpos
p2
=
event
.
GetPositionTuple
()
sz
=
self
.
GetClientSize
()
p1
=
list
(
p1
)
+
[
0
]
p2
=
list
(
p2
)
+
[
0
]
p1
[
1
]
*=
-
1
p2
[
1
]
*=
-
1
sz
=
list
(
sz
)
+
[
1
]
sz
[
0
]
*=
2
sz
[
1
]
*=
2
self
.
transv
=
map
(
lambda
x
,
y
,
z
,
c
:
c
-
self
.
dist
*
(
x
-
y
)
/
z
,
p1
,
p2
,
sz
,
self
.
transv
)
glTranslatef
(
p2
[
0
]
-
p1
[
0
],
p2
[
1
]
-
p1
[
1
]
,
0
)
glTranslatef
(
p2
[
0
]
-
p1
[
0
],
-
(
p2
[
1
]
-
p1
[
1
])
,
0
)
self
.
initpos
=
None
else
:
event
.
Skip
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment