mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Load the Ultimaker robot as an example mesh
This commit is contained in:
parent
3b2a6423d0
commit
bc24183f51
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ class PrinterApplication(QtApplication):
|
||||||
root = self.getController().getScene().getRoot()
|
root = self.getController().getScene().getRoot()
|
||||||
platform = Platform(root)
|
platform = Platform(root)
|
||||||
|
|
||||||
|
mesh = SceneNode(platform)
|
||||||
|
mesh.setMeshData(self.getMeshFileHandler().read(Resources.getPath(Resources.MeshesLocation, 'UltimakerRobot_support.stl'), self.getStorageDevice('local')))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.getMachineSettings().loadValuesFromFile(Resources.getPath(Resources.SettingsLocation, 'ultimaker2.cfg'))
|
self.getMachineSettings().loadValuesFromFile(Resources.getPath(Resources.SettingsLocation, 'ultimaker2.cfg'))
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue