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, 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> Read more…

XML To JSON
: Input your strings, the tool can convert XML to JSON for you.

X