11-06-2003 05:36 PM
11-07-2003 02:36 AM
11-07-2003 05:36 AM
08-01-2019 11:53 AM
Use the "ActiViz" .NET wrapper : https://www.kitware.eu/product/activiz
The key for me was to create a "RenderWindowControl" on the front panel (which loaded the dependencies correctly). Then I was able to replicate their "hello world" example (see attached). For the example program to work, you will need to install ActiViz and point to the "Kitware.VTK.dll", I am using the ActiViz version 8.2.0)
The only real change to the example was that the “vtkPolyDataMapper.New();” threw an error “System.MissingMethodException: Cannot create an abstract class.”
The error appeared to be because it doesn’t know what child class to create. So I looked up that class, and replaced “vtkPolyDataMapper.New();” with the child “vtkOpenGLPolyDataMapper” explicitly.