I don't know where is the function savePolygonFileSTL in pcl 1.6. Which file do I have to include?
Here it says that it is part of
#include <pcl/pcl_config.h>
#include <boost/cstdint.hpp>
#include <cstdlib>
#include <iostream>
#include <stdarg.h>
#include <stdio.h>
#include <math.h>
Anyway VS2010 doesn't find it, and also with manually search I didn't find the definition of that function in all pcl 1.6 folders. Neither savePolygonFile exists or similar. How is it possible? There is something that I don't know? Please help me.
Thanks a lot
As mentioned in this tutorial, you could try to include the following include at the top of your code:
#include <pcl/io/pcd_io.h>
Update: by looking at the PCL 1.6 source code here, it looks like the savePolygonFileSTL
function is defined in the vtk_lib_io.h
header. Try to include it adding this line to your code:
#include <pcl/io/vtk_lib_io.h>
Please be sure to have a VTK enabled PCL build.