Functions | Variables
mesh_sampling.cpp File Reference
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/io/pcd_io.h>
#include <pcl/common/transforms.h>
#include <vtkPLYReader.h>
#include <vtkOBJReader.h>
#include <vtkTriangle.h>
#include <vtkTriangleFilter.h>
#include <vtkPolyDataMapper.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/console/print.h>
#include <pcl/console/parse.h>
Include dependency graph for mesh_sampling.cpp:

Go to the source code of this file.


int main (int argc, char **argv)
void printHelp (int, char **argv)
void randomPointTriangle (float a1, float a2, float a3, float b1, float b2, float b3, float c1, float c2, float c3, Eigen::Vector4f &p)
void randPSurface (vtkPolyData *polydata, std::vector< double > *cumulativeAreas, double totalArea, Eigen::Vector4f &p)
double uniform_deviate (int seed)
void uniform_sampling (vtkSmartPointer< vtkPolyData > polydata, size_t n_samples, pcl::PointCloud< pcl::PointXYZ > &cloud_out)


float default_leaf_size = 0.01f
int default_number_samples = 100000

Function Documentation

int main ( int  argc,
char **  argv 

Definition at line 157 of file mesh_sampling.cpp.

void printHelp ( int  ,
char **  argv 

Definition at line 142 of file mesh_sampling.cpp.

void randomPointTriangle ( float  a1,
float  a2,
float  a3,
float  b1,
float  b2,
float  b3,
float  c1,
float  c2,
float  c3,
Eigen::Vector4f &  p 
) [inline]

Definition at line 58 of file mesh_sampling.cpp.

void randPSurface ( vtkPolyData *  polydata,
std::vector< double > *  cumulativeAreas,
double  totalArea,
Eigen::Vector4f &  p 
) [inline]

Definition at line 82 of file mesh_sampling.cpp.

double uniform_deviate ( int  seed) [inline]

Definition at line 51 of file mesh_sampling.cpp.

void uniform_sampling ( vtkSmartPointer< vtkPolyData >  polydata,
size_t  n_samples,
pcl::PointCloud< pcl::PointXYZ > &  cloud_out 

Definition at line 102 of file mesh_sampling.cpp.

Variable Documentation

float default_leaf_size = 0.01f

Definition at line 139 of file mesh_sampling.cpp.

int default_number_samples = 100000

Definition at line 138 of file mesh_sampling.cpp.

Author(s): Open Perception
autogenerated on Mon Oct 6 2014 03:19:13