how to learn

Hi, I want to learn vtk, where do I start?

Take a look at the User’s Guide at https://vtk.org/documentation/ and the VTK examples at https://kitware.github.io/vtk-examples/site/. Learning by example is probably the best way to learn VTK (or at least it worked in my experience).

3 Likes

Some other pointers that may help. With respect ro the VTK Examples site, I would suggest firstly:

  1. Try out the Tutorials. There is a lot of explanation about each step there. Then experiment by varying the sources e.g. use a cylinder instead of a cone, choose different colours etc.
  2. Then try other examples that don’t need data.
  3. Now to use examples that need data, you will need to either:
    a. Go to gitlab and either clone the whole site or go to src/Testing/Data and download the individual data file(s) you want. This is also the site to use when submitting merge requests. This is the best option.
    b. Clone the whole site from github. Note that this is a mirror of the gitlab site (do not submit merge requeste here).
  4. Have fun trying out the examples, you wil learn a lot! This will also be useful: SelectExamples.

A further explanation for point 3 is that in the vtk-examples site, data is stored as git-lfs files and you can download individual lfs files from gitlab but not from github.

Hope this helps.

Thank you. The example CMAKE I downloaded from the official website has been suffering from such errors for several days. What should I do


You are using an older version of VTK, it would be better to use the most recent version of VTK. If you want to keep using the old vrsion of VTK this link may give you some ideas: Module Migration. It points out the differences between VTK8 and VTK9.