I’m generating a 3dim numpy array from a bmesh containing the vertex coords of each vertex’s link edges’ other verts.

I’m relatively new to numpy and I’m wondering if there is a much faster way than what I’m doing.

I need to at least fill the array with new coords every frame so it needs to be fast.

Are there any options using ‘foreach_get()’ other than generating a flat array? Perhaps there is a way to create a zero list with numpy.zeros then fill it with the vertex coords? I can generate a list of indices just once then fill it each frame if there is a fast way to do that.

Thanks for the help in advance.

Here’s what I have:

```
link_co = np.array([[[ve.co for ve in ed.verts if ve.index != v.index] for ed in v.link_edges] for v in b_mesh.verts])
```