当前位置:   article > 正文

VTK&PCL 点云显示 / 曲面重建_fran_cut.vtk

fran_cut.vtk

参考:vtk图形图像开发进阶

  1. vtkSmartPointer<vtkPolyDataReader> reader =
  2. vtkSmartPointer<vtkPolyDataReader>::New();
  3. reader->SetFileName("fran_cut.vtk");
  4. reader->Update();
  5. vtkSmartPointer<vtkPolyData> points =
  6. vtkSmartPointer<vtkPolyData>::New();
  7. points->SetPoints(reader->GetOutput()->GetPoints());
  8. vtkSmartPointer<vtkSurfaceReconstructionFilter> surf =
  9. vtkSmartPointer<vtkSurfaceReconstructionFilter>::New();
  10. surf->SetInputData(points);
  11. surf->SetNeighborhoodSize(20);
  12. surf->SetSampleSpacing(0.005);
  13. vtkSmartPointer<vtkContourFilter> contour =
  14. vtkSmartPointer<vtkContourFilter>::New();
  15. contour->SetInputConnection(surf->GetOutputPort());
  16. contour->SetValue(0, 0.0);
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号