I have a list of 3D points in np.array named pointsList , float values:
[[1., 2., 10.], [2., 0., 1.], [3., 6., 9.], [1., 1., 1.], [2., 2., 2.], [10., 0., 10.], [0., 10., 5.], ... etc.
This code makes Delaney's triangulation a point cloud:
import numpy as np import scipy.spatial tri = scipy.spatial.Delaunay(pointsList)
However, before this step of triangulation, I would like to remove from my list all the points that are inside the convex hull
The solution would be to create a new np.array named shortlist and save them there.
But what function in scipy (or any other solution) will do this?
How can I program this operation?
thanks