Hello,
For shapes more complicated than a sphere or cube, you'll need a way to decide whether or not a point is inside (eg count the number of times a line from (-10,-10,-10) to the point crosses the surface. Once you've got this, something along the lines of:
```
def inside(x, y, z):
# A function that returns True if (x, y, z) is inside shape
idx = []
for i, (x, y, z) in enumerate(points)
if inside(x, y, z):
idx.append(i)
```
Then using the potential operators as in the example.
Hope this helps,
Matthew