#open3d 最远点采样
import os
from pathlib import Path
import numpy as np
import open3d as o3d
def farthest_point_sample(point, npoint):
"""
Input:
xyz: pointcloud data, [N, D]
npoint: number of samples
Return:
centroids: sampled pointcloud index, [npoint, D]
"""
N, D = point