VTK 显示为 2D

void restrict_to_2d(QVTKOpenGLNativeWidget *widget) {
  // Set the render window's multisampling to 0.
  vtkRenderWindow *render_window = widget->renderWindow();
  render_window->SetMultiSamples(0);

  // Set the render window's stereo render to False.
  render_window->SetStereoRender(false);
}
posted @ 2023-07-12 13:59  山岚2013  阅读(39)  评论(0编辑  收藏  举报