huangxingxing преди 1 година
родител
ревизия
77e410f253
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/control/vtkModel.js

+ 1 - 1
src/control/vtkModel.js

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