bwoodsend / vtkplotlib

VTK (C++ 3D graphics library) wrapped into an easy to use 3D equivalent of matplotlib
MIT License
40 stars 6 forks source link

How to add stl display to tkinter? #4

Open Menginventor opened 3 years ago

Menginventor commented 3 years ago

Are there any method to add stl display to tkinter window?

bwoodsend commented 3 years ago

I'm afraid not. VTK does have a small corner for tkinter integration in their source code however is is disabled in the VTK wheels on PyPI so if you desperately wanted this functionality you would have to compile VTK from source (which is insanely hard work) but with custom build flags. There's an example of VTK tkinter code here but it won't work because VTK no longer contains the necessary components. Presumably it did in an older version but I can't find anything before VTK 8.1 which is too recent. I'd happily support tkinter if it weren't for this.