The Example About vtkPolyDataNormals

The algorithm class vtkPolyDataNormals can be used to calculate normals of points and cells in polydata. The following example shows how to use it. Cube Create a cube in which every cell is a single square. All information can be found in polydata, we use vtkPolyDataNormals to handle it and Read more…

Show Special Character In VTK

We can use vtkTextActor to show string which contains special character. I use encoding value to represent math symbol and store it in QString object in the following example. #include <vtkActor.h> #include <vtkPolyData.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <vtkTextActor.h> #include <vtkSphereSource.h> #include <vtkPlaneSource.h> #include <vtkPolyDataMapper.h> #include Read more…

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

X