File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 11from typing import Dict , Optional , Any , Tuple
22from numpy import array , ndarray
33from vedo import show , Plotter
4+ from platform import system
45
56from SSD .Core .Storage .Database import Database
67from SSD .Core .Rendering .VedoActor import VedoActor
@@ -144,16 +145,17 @@ def init_visualizer(self):
144145 plt .addButton (plt .interactor .TerminateApp , states = ["start" ])
145146 plt .interactive ()
146147 # Once the user closed the window, recreate a new Plotter
147- camera = {'pos' : plt .camera .GetPosition (),
148- 'focalPoint' : plt .camera .GetFocalPoint ()}
149- self .__plotter = show (actors ,
150- new = True ,
151- N = len (actors ),
152- sharecam = True ,
153- interactive = False ,
154- title = 'SofaVedo' ,
155- axes = plt .axes ,
156- camera = camera )
148+ if system () != 'Darwin' :
149+ camera = {'pos' : plt .camera .GetPosition (),
150+ 'focalPoint' : plt .camera .GetFocalPoint ()}
151+ self .__plotter = show (actors ,
152+ new = True ,
153+ N = len (actors ),
154+ sharecam = True ,
155+ interactive = False ,
156+ title = 'SofaVedo' ,
157+ axes = plt .axes ,
158+ camera = camera )
157159
158160 def update_instance (self ,
159161 table_name : str ,
You can’t perform that action at this time.
0 commit comments