huangxingxing 1 жил өмнө
parent
commit
77e410f253

+ 1 - 1
src/control/vtkModel.js

@@ -105,8 +105,8 @@ export class VtkModel {
     this.renderWindowWith =  vtkGenericRenderWindow.newInstance();
     this.renderWindowWith.setContainer(rootContainer);
     this.renderer = this.renderWindowWith.getRenderer();
+    this.renderer.setBackground(0.0, 0.0, 0.0, 0.0)
     this.renderWindow = this.renderWindowWith.getRenderWindow();
-    // this.renderWindow.setTransparentBackground(true);
 
     //选取
     this.lastActor = null;