A Tool To Convert Mesh Data To Pointcloud

MeshToPointcloudFPS is an opensource utility based on PCL-lib, Vcglib, and Meshlab to convert OBJ files into PCL or HDF5 files. It supports downsampling of the resulted pointcloud using Furthest Point Sampling (FPS) algorithm. The utility could be used to prepare datasets offered in Mesh format (such as Shapenet Core).

$ FpsCpu -h
Usage: FpsCpu [options...]
Options:
    -i, --inputmesh        The path for the input mesh *.obj file. (Required)
    -o, --outputhdf5       The path for the output hdf5 *.h5 file with sampled point cloud. (Required)
    -n, --npoints          The target number of points per mesh input file (input.obj). (Required)
    -r, --rawpcd           The path for the optional output pcd *.pcd file with RAW point cloud.
    -p, --outputpcd        The path for the optional output pcd *.pcd file with sampled point cloud.
    -h, --help             Shows this page