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
33b707bf
Commit
33b707bf
authored
Jul 30, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix speedup-related errors
parent
f8a64572
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
actors.py
printrun/gl/libtatlin/actors.py
+3
-3
No files found.
printrun/gl/libtatlin/actors.py
View file @
33b707bf
...
@@ -354,7 +354,7 @@ class GcodeModel(Model):
...
@@ -354,7 +354,7 @@ class GcodeModel(Model):
new_vertices
.
append
((
p1x
,
p1y
,
prev_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p1x
,
p1y
,
prev_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
prev_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
prev_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
prev_pos
[
2
]
+
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
prev_pos
[
2
]
+
path_halfheight
))
first
=
len
(
new_vertices
)
-
4
first
=
len
(
vertex_list
)
# Link to previous
# Link to previous
new_indices
+=
triangulate_rectangle
(
first_prev
,
first
,
new_indices
+=
triangulate_rectangle
(
first_prev
,
first
,
first
+
1
,
first_prev
+
1
)
first
+
1
,
first_prev
+
1
)
...
@@ -374,7 +374,7 @@ class GcodeModel(Model):
...
@@ -374,7 +374,7 @@ class GcodeModel(Model):
new_vertices
.
append
((
p1x
,
p1y
,
prev_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p1x
,
p1y
,
prev_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
prev_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
prev_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
prev_pos
[
2
]
+
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
prev_pos
[
2
]
+
path_halfheight
))
first
=
len
(
new_vertices
)
-
4
first
=
len
(
vertex_list
)
new_indices
=
triangulate_rectangle
(
first
,
first
+
1
,
new_indices
=
triangulate_rectangle
(
first
,
first
+
1
,
first
+
2
,
first
+
3
)
first
+
2
,
first
+
3
)
...
@@ -388,7 +388,7 @@ class GcodeModel(Model):
...
@@ -388,7 +388,7 @@ class GcodeModel(Model):
new_vertices
.
append
((
p1x
,
p1y
,
current_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p1x
,
p1y
,
current_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
current_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
current_pos
[
2
]
-
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
current_pos
[
2
]
+
path_halfheight
))
new_vertices
.
append
((
p2x
,
p2y
,
current_pos
[
2
]
+
path_halfheight
))
end_first
=
len
(
new_vertices
)
-
4
end_first
=
len
(
vertex_list
)
+
len
(
new_vertices
)
-
4
new_indices
+=
triangulate_rectangle
(
end_first
+
3
,
end_first
+
2
,
new_indices
+=
triangulate_rectangle
(
end_first
+
3
,
end_first
+
2
,
end_first
+
1
,
end_first
)
end_first
+
1
,
end_first
)
new_indices
+=
triangulate_rectangle
(
first
,
end_first
,
new_indices
+=
triangulate_rectangle
(
first
,
end_first
,
...
...
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