lorensen / VTKExamples

The VTK examples, formerly hosted on media wiki
Apache License 2.0
342 stars 157 forks source link

Issues running the ReadOBJ sample #668

Closed orgicus closed 3 years ago

orgicus commented 3 years ago

Hi,

I'm new to VTK and amazed by the abundance of algorithms, examples and detailed tutorials. Outstanding work from the whole team!

I have tried to the ReadOBJ example, however I see a warning then the program exits:

2021-03-29 19:00:21.828 (   0.058s) [                ]vtkInteractorStyleSwitc:37    WARN| vtkInteractorStyleSwitchBase (000002080DD8E1C0): Warning: Link to vtkInteractionStyle for default style selection.

This is using VTK-9.0.1 build from source using Visual Studio 2019 on Windows 10.

I've tried several obj modules, including the VTK trumpet.obj mesh, saved in the same folder as ReadOBJ.exe to avoid any confusion around paths.

I'm hoping I'm missing something simple here. Any hints/tips on how I may use this sample and view the loaded OBJ file ?

Many thanks, George

ajpmaclean commented 3 years ago

This site is no longer being maintained. Please use the new site here vtk-examples. This link on the new site ReadOBJ will also provide you with the updated code and a suitable CMakeLists.txt file. To address your comment, you are missing vtkInteractionStyle in your find_package(VTK COMPONENTS entry.