I try to add a dtype in a numpy array (for the creation after of a ply file), but when I write this:
list_example = np.array([[1,2,3]], dtype=[('example', 'i4', (3,))]
The result is :
array([[([1, 1, 1],), ([2, 2, 2],), ([3, 3, 3],)]],
dtype=[('example', '<i4', (3,))])
And i don't understand why it's duplicate every components of my array. Because if I do this:
np.array([([1,2,3], 255)], dtype = [('example', 'i4', (3,)), ('color', 'u1')])
I obtain:
array([([1, 2, 3], 255)], dtype=[('example', '<i4', (3,)), ('color', 'u1')])
where my array dont duplicate [1,2,3]
Thanks for your help!