Python
VTK – A Simple Example Written In Python Script
This post is similar to 【VTK】A SIMPLE EXAMPLE WRITTEN IN C++ We use python script to do the same thing: create and show a cone in 3D world with the virtualization tool kit. python script: #!/usr/bin/env python import vtk cone = vtk.vtkConeSource() coneMapper = vtk.vtkPolyDataMapper() coneMapper.SetInputConnection( cone.GetOutputPort() ) coneActor = Read more…