Showing posts with label VTK. Show all posts
Showing posts with label VTK. Show all posts

2/24/2017

vtkStructuredGrid example for drawing fan shape grid.


This is example code for drawing fan shape grid using vtkStructuredGrid in vtk.

I've looked at a lot of examples that draw like this, but I could not find it.

So this example help for vtk beginner and want to drawing grid.


< code start >

< code end >


#vtkStructuredGrid, #vtk

2/08/2017

no override found for 'vtkPolyDataMapper'


When meet this error no override found for 'vtkPolyDataMapper' using VTK.
Add this code

#include "vtkAutoInit.h" 
VTK_MODULE_INIT(vtkRenderingOpenGL2); // VTK was built with vtkRenderingOpenGL2
VTK_MODULE_INIT(vtkInteractionStyle);
Or
#define vtkRenderingCore_AUTOINIT 2(vtkRenderingOpenGL2, vtkInteractionStyle)

More detail
refer to this url
http://stackoverflow.com/questions/18642155/no-override-found-for-vtkpolydatamapper

1/31/2017

Including VTK when building opencv

First, we download VTK and build it.
http://www.vtk.org/download/

and
We set the path where VTK is built, when we build opencv.


Note that, we need to include the build path, not the installed path.

http://cvlecture.marearts.com/2016/12/opencv-build-shared-opencv.html
If you go to the above address, I have built VTK 7.1.
And new content will continue to be added.

Good luck!