every blog every motto: You can do more than you think.
https://blog.csdn.net/weixin_39190382?type=blog
0. 前言
350A4D40]vtkOpenGLPolyDataMapper:328 WARN| vtkOpenGLPolyDataMapper::SetGeometryShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::SetGeometryShaderCode instead.
1. 正文
报错:
350A4D40]vtkOpenGLPolyDataMapper:328 WARN| vtkOpenGLPolyDataMapper::SetGeometryShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::SetGeometryShaderCode instead.
解决办法:
viewer->spinOnce(100);
替换为
viewer->spin();
完整版:
while (!viewer->wasStopped()){
// viewer->spinOnce(100);
viewer->spin();
boost::this_thread::sleep (boost::posix_time::microseconds (100000));
}
参考
- https://github.com/PointCloudLibrary/pcl/issues/5237