def save(cloud, path, format=None, binary=False):
    format = _infer_format(path, format)
    try:
        dumper = getattr(cloud, "_to_%s_file" % format)
    except AttributeError:
        raise ValueError("unknown file format %s" % format)
    if dumper(_encode(path), binary):
        raise IOError("error while saving pointcloud to %r (format=%r)"
                      % (path, format))
Save pointcloud to file.
dataset/ETHPy150Open strawlab/python-pcl/pcl/__init__.py/save