mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 02:07:51 -06:00
Add a BuildVolume node to render the build volume
This commit is contained in:
parent
e7a51b3bd8
commit
c7cecb180d
2 changed files with 79 additions and 1 deletions
|
@ -10,6 +10,7 @@ from UM.Scene.BoxRenderer import BoxRenderer
|
|||
from UM.Scene.Selection import Selection
|
||||
|
||||
from PlatformPhysics import PlatformPhysics
|
||||
from BuildVolume import BuildVolume
|
||||
|
||||
import os.path
|
||||
|
||||
|
@ -49,7 +50,11 @@ class PrinterApplication(QtApplication):
|
|||
root = controller.getScene().getRoot()
|
||||
platform = Platform(root)
|
||||
|
||||
self.getRenderer().setLightPosition(Vector(0, 150, 150))
|
||||
volume = BuildVolume(root)
|
||||
volume.translate(Vector(0, 75.1, 0))
|
||||
volume.scale(150.0)
|
||||
|
||||
self.getRenderer().setLightPosition(Vector(0, 150, 0))
|
||||
|
||||
camera = Camera('3d', root)
|
||||
camera.translate(Vector(0, 150, 150))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue