简体   繁体   English

vtkTextActor不起作用

[英]vtkTextActor doesn't work

I'm trying to run this example VTK code , but it doesn't work as intended. 我正在尝试运行此示例VTK代码 ,但无法按预期运行。 I get a window with a green background but not text. 我得到一个带有绿色背景但没有文字的窗口。

I'm running Windows 7, VTK 6.3 with Python 2.7.14, which I installed using Anaconda. 我正在运行Windows 7,VTK 6.3和Python 2.7.14,并使用Anaconda安装。

The problem seems to be that VTK 6 doesn't have text features. 问题似乎在于VTK 6没有文本功能。 I had to upgrade to VTK 8. I thought I was running the most recent version of VTK, but in fact Anaconda gave me 6 because 8 isn't compatible with Python 2.7 (so I also had to install Python 3). 我必须升级到VTK8。我以为我正在运行最新版本的VTK,但是实际上Anaconda给了我6,因为8与Python 2.7不兼容(因此我也必须安装Python 3)。

Upgrading to VTK 8 solves the problem. 升级到VTK 8可解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM