'I want to obtain a mesh from a point cloud in python

I have some brain images in a ndarray vector whose size is (25,29,21).

I would like to obtain a mesh from that points cloud but i don't know how.

I need that just to use the zernike moments in this repository:

https://github.com/nipy/mindboggle/blob/bc10812979d42e94b8a01ad8f98b4ceae33169e5/mindboggle/shapes/zernike/zernike.py#L248

Because one of the imput parameters is faces that is a list of lists of 3 integers. Each list contains indices to vertices that form a triangle on a mesh. Does anyone of you know how can i obtain that from my point cloud in ndarray format?

Thanks in advance!

I looked for it on google but i didn't obtain nothing interesting to use. Can someone help me?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source