andrewrgarcia / voxelmap

A Python library for making voxel and 3D mesh models from images and arrays
https://voxelmap.vercel.app
MIT License
20 stars 2 forks source link

Draw at proper 3D orientation - patch for voxelmap.Model().draw() #4

Closed andrewrgarcia closed 1 year ago

andrewrgarcia commented 1 year ago

Fix the make() function from the Model class to draw 3D models with the same orientation as its multidimensional array.

The current 'quick-fix' is to swap the axes of the array so that the model draws at the correct orientation by using array = np.transpose(array,(2,1,0)) or a variation thereof. This is merely a band-aid solution and the bug must be fixed at its source, which I believe is voxelmap.Model().draw() function, though it may be a combination of this one and others as well.