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:
Arjen Hiemstra 2015-04-20 13:46:37 +02:00
parent e8dc563c46
commit 4801233728
3 changed files with 15 additions and 3 deletions

View file

@ -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)