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
abd56970
Commit
abd56970
authored
Apr 02, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make path_width and path_height dynamically changeable
parent
85de40f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
actors.py
printrun/gl/libtatlin/actors.py
+6
-2
No files found.
printrun/gl/libtatlin/actors.py
View file @
abd56970
...
@@ -306,6 +306,9 @@ class GcodeModel(Model):
...
@@ -306,6 +306,9 @@ class GcodeModel(Model):
use_vbos
=
True
use_vbos
=
True
loaded
=
False
loaded
=
False
path_halfwidth
=
0.2
path_halfheight
=
0.2
def
load_data
(
self
,
model_data
,
callback
=
None
):
def
load_data
(
self
,
model_data
,
callback
=
None
):
t_start
=
time
.
time
()
t_start
=
time
.
time
()
...
@@ -378,8 +381,9 @@ class GcodeModel(Model):
...
@@ -378,8 +381,9 @@ class GcodeModel(Model):
move_normal_x
=
-
delta_y
/
norm
move_normal_x
=
-
delta_y
/
norm
move_normal_y
=
delta_x
/
norm
move_normal_y
=
delta_x
/
norm
path_halfwidth
=
0.2
# FIXME: compute these dynamically
path_halfheight
=
0.12
path_halfwidth
=
self
.
path_halfwidth
*
1.2
path_halfheight
=
self
.
path_halfheight
*
1.2
new_indices
=
[]
new_indices
=
[]
new_vertices
=
[]
new_vertices
=
[]
...
...
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