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/23/2017

class member thread using std

class member function threading

1. No argument
< code start >

< code end >


2. additional arguments
< code start >

< code end >


3. Lambda Express
std::thread t( [&] { x.greeting(); } ); //no argument
std::thread t( [&] { x.greeting( "goodbye" ); } ); //with argument


Static or global function threading

< code start >

< code end >


#thread, #std, #lambda

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