Commit b2aff8ff authored by Duggan, John's avatar Duggan, John
Browse files

Ensure GPU mapper is used when volume rendering

parent 7eb92910
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
[tool.poetry]
name = "ctscan-viz"
version = "0.3.0"
version = "0.3.1"
description = "Template application"
authors = []
readme = "README.md"
+3 −1
Original line number Diff line number Diff line
@@ -50,7 +50,9 @@ class VisualizationPanel:

    async def render_in_background(self) -> None:
        start = time()
        self.plotter.add_volume(self.vm.get_volume(), clim=self.vm.get_clim(), opacity=self.vm.get_opacity())
        self.plotter.add_volume(
            self.vm.get_volume(), clim=self.vm.get_clim(), mapper="gpu", opacity=self.vm.get_opacity()
        )
        self.plotter.view_isometric(self.plotter)
        print(f"PyVista volume rendering: {time() - start:.2f}s", flush=True)