Fix Crash Bug About vtkCellPicker::~vtkCellPicker And vtkCollection::DeleteElement

Here is dump log which shows the stack information. The class CBase has OpenModule and CloseModule interfaces, they can be called multible times. exe caused an Access Violation at location 00007FFA62174327 in module vtkCommonCore-8.2.dll Reading from location 0000000000000DA4. AddrPC Params 00007FFA62174327 0000000000000001 00007FFA9011F05B 0000013DF642A190 vtkCommonCore-8.2.dll!vtkCollection::DeleteElement 00007FFA62174155 0000000000000001 00007FFA622D3BFF 0000013DF6429290 vtkCommonCore-8.2.dll!vtkCollection::~vtkCollection Read more…

Show Point List By Line And Points

The article describe a simple way to display point id list on the original model. We use VTK to draw and show all scenes. vtkSmartPointer<vtkPolyData> UShowData::ShowListByPoints(vtkSmartPointer<vtkPolyData> polyData, vtkSmartPointer<vtkIdList> list) { vSPNew( result, vtkPolyData ); vSPNew( resultPts, vtkPoints ); vSPNew( resultVerts, vtkCellArray ); for( int i = 0; i < list->GetNumberOfIds(); Read more…

VTK – Combine Two Mesh Objects To One

The article shows how to combine two mesh objects to one based on VTK. The code snippet is in the following part. #include <iostream> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkActor.h> #include <vtkConeSource.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkPolyDataMapper.h> #include <vtkRenderWindowInteractor.h> #define vtkPtr( var, className ) vtkSmartPointer<className> var = \ vtkSmartPointer<className>::New() Read more…

Add Subdirectory In CMake Project

Add subdirectories and use VTK library and Qt in my projects. The file structure looks like the following image. projectB generates lib and dll files which will be used by projectA. projectA show a window and print message from Base class in projectB. The file CMakeLists.txt in the root directionary Read more…

Content Summary
: Input your strings, the tool can get a brief summary of the content for you.

X