I have an array of points. Some of them are set to 1 (the red points in the picture), the rest are set to zero. How can I find all points inside the polygon created by my points (all green points in the picture)?
I don't want to just display them, I need their indexes.
My array of data is 3D.