vtkconesource专题

十、VTK创建圆锥体vtkConeSource 带颜色

为圆锥体的每一面,添加一种颜色:   上述效果的代码:  #include <vtkSmartPointer.h>#include <vtkPoints.h>#include <vtkLine.h>#include <vtkPolyData.h>#include <vtkPolyDataWriter.h>#include <vtkPolyDataMapper.h>#incl