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
8941eb74
Commit
8941eb74
authored
Dec 09, 2011
by
Kliment Yanev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug with slic3r gcode and duration estimation
Make STLs less shiny on non-Linux OSs
parent
a2d5cd5d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
pronsole.py
pronsole.py
+1
-0
stlview.py
stlview.py
+2
-2
No files found.
pronsole.py
View file @
8941eb74
...
@@ -108,6 +108,7 @@ def estimate_duration(g):
...
@@ -108,6 +108,7 @@ def estimate_duration(g):
# calculate the maximum move duration accounting for above ;)
# calculate the maximum move duration accounting for above ;)
print
".... estimating ...."
print
".... estimating ...."
for
i
in
g
:
for
i
in
g
:
i
=
i
.
split
(
";"
)[
0
]
if
"G4"
in
i
or
"G1"
in
i
:
if
"G4"
in
i
or
"G1"
in
i
:
if
"G4"
in
i
:
if
"G4"
in
i
:
parts
=
i
.
split
(
" "
)
parts
=
i
.
split
(
" "
)
...
...
stlview.py
View file @
8941eb74
...
@@ -102,7 +102,7 @@ class GLPanel(wx.Panel):
...
@@ -102,7 +102,7 @@ class GLPanel(wx.Panel):
self
.
dist
=
1000
self
.
dist
=
1000
self
.
vpmat
=
None
self
.
vpmat
=
None
#normal gl init
#normal gl init
glClearColor
(
0
,
0
,
0
,
0.5
)
glClearColor
(
0
,
0
,
0
,
1
)
glColor3f
(
1
,
0
,
0
)
glColor3f
(
1
,
0
,
0
)
glEnable
(
GL_DEPTH_TEST
)
glEnable
(
GL_DEPTH_TEST
)
glEnable
(
GL_CULL_FACE
)
glEnable
(
GL_CULL_FACE
)
...
@@ -129,7 +129,7 @@ class GLPanel(wx.Panel):
...
@@ -129,7 +129,7 @@ class GLPanel(wx.Panel):
glMaterialfv
(
GL_FRONT_AND_BACK
,
GL_AMBIENT_AND_DIFFUSE
,
vec
(
0.5
,
0
,
0.3
,
1
))
glMaterialfv
(
GL_FRONT_AND_BACK
,
GL_AMBIENT_AND_DIFFUSE
,
vec
(
0.5
,
0
,
0.3
,
1
))
glMaterialfv
(
GL_FRONT_AND_BACK
,
GL_SPECULAR
,
vec
(
1
,
1
,
1
,
1
))
glMaterialfv
(
GL_FRONT_AND_BACK
,
GL_SPECULAR
,
vec
(
1
,
1
,
1
,
1
))
glMaterialf
(
GL_FRONT_AND_BACK
,
GL_SHININESS
,
20
0
)
glMaterialf
(
GL_FRONT_AND_BACK
,
GL_SHININESS
,
5
0
)
glMaterialfv
(
GL_FRONT_AND_BACK
,
GL_EMISSION
,
vec
(
0
,
0.1
,
0
,
0.9
))
glMaterialfv
(
GL_FRONT_AND_BACK
,
GL_EMISSION
,
vec
(
0
,
0.1
,
0
,
0.9
))
#create objects to draw
#create objects to draw
#self.create_objects()
#self.create_objects()
...
...
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