pcl :: io没有成员savePolygonFile

SPS*_*SPS 2 visual-studio-2010 polygons point-clouds point-cloud-library stl-format

我不知道pcl 1.6中的函数savePolygonFileSTL在哪里.我必须包含哪个文件?

这里说它是它的一部分

#include <pcl/pcl_config.h>
#include <boost/cstdint.hpp>
#include <cstdlib>
#include <iostream>
#include <stdarg.h>
#include <stdio.h>
#include <math.h>
Run Code Online (Sandbox Code Playgroud)

无论如何VS2010没有找到它,并且还有手动搜索我没有在所有pcl 1.6文件夹中找到该功能的定义.savePolygonFile既不存在也不相似.这怎么可能?还有一些我不知道的事情?请帮我.

非常感谢

Dex*_*ter 5

教程中所述,您可以尝试在代码顶部包含以下include:

#include <pcl/io/pcd_io.h>
Run Code Online (Sandbox Code Playgroud)

更新:通过查看此处的PCL 1.6源代码,看起来savePolygonFileSTL函数是在vtk_lib_io.h头文件中定义的.尝试将其添加到您的代码中:

#include <pcl/io/vtk_lib_io.h>
Run Code Online (Sandbox Code Playgroud)

请务必使用支持VTK的PCL构建.