Using .NET Wrappers by Skala and Frank

Because the VTK.NET 4.2.2 binary distributed on their page does not seem to work, I distribute a binary with directions below.

Instructions

  1. Go to Slovenian VTK .NET homepage to get documentation and examples for the 4.2.2 version of VTK .NET.
  2. Download VTK 4.2.2 binaries, including vtkDotNetWrap.dll and VTK 4.2.2 compiled help file from this site.
  3. In order to use the help file, you may need to right-click on the downloaded file to give security permissions to use it. You will know if the help files shows up blank.
  4. Unzip the file to make a directory called C:\Program Files\vtk422. Note that vtkConfigure.h will claim this is version 4.2.1. I seem to recall that not updating the version was a bug in the 4.2.2 release.
  5. Add C:\Program Files\vtk422\bin to your system path by going to the System control panel, choosing the Advanced tab, and clicking Environment Variables.
  6. Restart Visual Studio .NET 2003 so that it accepts the new path.
  7. Create a new C# Console Application.
  8. Using the Project Menu, choose Add Reference... to add C:\Program Files\vtk422\bin\vtkDotNetWrap.dll to your project.
  9. Copy this example. It is slightly different from their examples and seems to compile better because it does not mix the vtkDotNetWrap namespace with the global namespace.
  10. Compile and run.

What's in the Zip File?

  1. I downloaded the VTK 4.2.2 wrapper code from their VTK .NET web site.
  2. I got the VTK 4.2.2 source by using the Kitware cvs at :pserver:anonymous@public.kitware.com:/cvsroot/VTK to checkout the VTK branch with revision "release-4-2-2".
  3. I compiled that source with the Release setting (because it seemed to better match the wrapper project's settings, even though MinSizeRel is more appropriate).
  4. I compiled the wrapper against that version of VTK 4.2.2.
  5. I put the wrapper, vtkDotNetWrap.dll, into the same directory as the native dlls and zipped the whole distribution directory.

VTK .NET home