mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Implement build volume checks on objects
Currently using a dynamic property on SceneNode since I have not found a better solution yet.
This commit is contained in:
parent
e8dc563c46
commit
4801233728
3 changed files with 15 additions and 3 deletions
|
@ -87,8 +87,6 @@ class PrinterApplication(QtApplication):
|
|||
|
||||
Selection.selectionChanged.connect(self.onSelectionChanged)
|
||||
|
||||
self._physics = PlatformPhysics(controller)
|
||||
|
||||
root = controller.getScene().getRoot()
|
||||
self._platform = Platform(root)
|
||||
|
||||
|
@ -97,6 +95,8 @@ class PrinterApplication(QtApplication):
|
|||
self.getRenderer().setLightPosition(Vector(0, 150, 0))
|
||||
self.getRenderer().setBackgroundColor(QColor(245, 245, 245))
|
||||
|
||||
self._physics = PlatformPhysics(controller, self._volume)
|
||||
|
||||
camera = Camera('3d', root)
|
||||
camera.setPosition(Vector(-150, 150, 300))
|
||||
camera.setPerspective(True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue