VTK
VTK – Create Spiral By Rigonometric Function
Let’s describe a 3D parametric curve by the form. The value s is in [0, 1]. It is a circle when s is zero, in the other situations it represents a spiral. #include <vtkPointData.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkPolyData.h> #include <vtkProperty.h> #include <vtkSphereSource.h> #include <vtkPolyDataMapper.h> Read more…