How to get uniformly distributed points in convex hull?
问题 Given a set of points, points = np.random.randn(...) # n 3d points I would like to uniformly fill the volume defined by the convex hull in which they lie by a list (np.array of shape nx3 ) of 3d points. I can get the convex hull by hull = scipy.spatial.ConvexHull(points) What would be the fastest way to get a list of points that uniformly fills this hull's volume? 回答1: 1) Find delaunay simplices of the hull 2) randomly sample the simplices based on their area 3) for each simplex, find uniform