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
1ff64ca8
Commit
1ff64ca8
authored
Jan 13, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support circular beds in plater
parent
8a495942
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
plater.py
printrun/plater.py
+5
-2
pronterface.py
printrun/pronterface.py
+1
-0
stlview.py
printrun/stlview.py
+4
-2
No files found.
printrun/plater.py
View file @
1ff64ca8
...
...
@@ -213,10 +213,13 @@ class StlPlater(Plater):
save_wildcard
=
_
(
"STL files (*.stl;*.STL)|*.stl;*.STL"
)
def
__init__
(
self
,
filenames
=
[],
size
=
(
800
,
580
),
callback
=
None
,
parent
=
None
,
build_dimensions
=
None
,
simarrange_path
=
None
):
parent
=
None
,
build_dimensions
=
None
,
circular_platform
=
False
,
simarrange_path
=
None
):
super
(
StlPlater
,
self
)
.
__init__
(
filenames
,
size
,
callback
,
parent
,
build_dimensions
)
if
glview
:
viewer
=
stlview
.
StlViewPanel
(
self
,
(
580
,
580
),
build_dimensions
=
self
.
build_dimensions
)
viewer
=
stlview
.
StlViewPanel
(
self
,
(
580
,
580
),
build_dimensions
=
self
.
build_dimensions
,
circular
=
circular_platform
)
else
:
viewer
=
showstl
(
self
,
(
580
,
580
),
(
0
,
0
))
self
.
simarrange_path
=
simarrange_path
if
simarrange_path
else
"./simarrange/sa"
...
...
printrun/pronterface.py
View file @
1ff64ca8
...
...
@@ -786,6 +786,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
plater
.
StlPlater
(
size
=
(
800
,
580
),
callback
=
self
.
platecb
,
parent
=
self
,
build_dimensions
=
self
.
build_dimensions_list
,
circular_platform
=
self
.
settings
.
circular_bed
,
simarrange_path
=
self
.
settings
.
simarrange_path
)
.
Show
()
def
platecb
(
self
,
name
):
...
...
printrun/stlview.py
View file @
1ff64ca8
...
...
@@ -57,7 +57,8 @@ class stlview(object):
class
StlViewPanel
(
wxGLPanel
):
def
__init__
(
self
,
parent
,
size
,
id
=
wx
.
ID_ANY
,
build_dimensions
=
None
):
def
__init__
(
self
,
parent
,
size
,
id
=
wx
.
ID_ANY
,
build_dimensions
=
None
,
circular
=
False
):
super
(
StlViewPanel
,
self
)
.
__init__
(
parent
,
id
,
wx
.
DefaultPosition
,
size
,
0
)
self
.
batches
=
[]
self
.
rot
=
0
...
...
@@ -71,7 +72,8 @@ class StlViewPanel(wxGLPanel):
self
.
build_dimensions
=
build_dimensions
else
:
self
.
build_dimensions
=
[
200
,
200
,
100
,
0
,
0
,
0
]
self
.
platform
=
actors
.
Platform
(
self
.
build_dimensions
,
light
=
True
)
self
.
platform
=
actors
.
Platform
(
self
.
build_dimensions
,
light
=
True
,
circular
=
circular
)
self
.
dist
=
max
(
self
.
build_dimensions
[
0
],
self
.
build_dimensions
[
1
])
self
.
basequat
=
[
0
,
0
,
0
,
1
]
wx
.
CallAfter
(
self
.
forceresize
)
...
...
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