VTK+Qt带颜色点云显示

  • Post author:
  • Post category:其他


struct PointRGB

{




double x;



double y;



double z;



double r;



double g;



double b;

};

void Vtk_RGB_Point()

{

vtkSmartPointer<vtkRenderer> Renderer = vtkSmartPointer<vtkRenderer>::New();

vector<PointRGB> pointrgb;



vtkSmartPointer<vtkActor> anActor = vtkSmartPointer<vtkActor>::New();



vtkSmartPointer<vtkPolyVertex>polyVertex = vtkSmartPointer<vtkPolyVertex>::New();



vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New();



vtkSmartPointer<vtkLookupTable> lut = vtkSmartPointer<vtkLookupTable>::New();



vtkSmartPointer<vtkFloatArray>pointsScalars = vtkSmartPointer<vtkFloatArray>::New();



vtkSmartPointer<vtkUnstructuredGrid> aGrid = vtkSmartPointer<vtkUnstructuredGrid>::New();



版权声明:本文为u011230774原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。