-1

Actually, I am pretty newbie using Blender and I have some problems in my first project.

I have an 3D array with shape (10,100,100) they are Z,X,Y dimensions respectively. How can I display this array using Blender?

Below the image which is plotted with matplotlib in python and I want to plot once via Blenderenter image description here

Thank you so much for your help.
PS To make this image, I just used a random array to generate it:

import numpy as np
np.random.seed(40)
data=np.random.rand(10,100,100)
Xylvier
  • 4,735
  • 1
  • 12
  • 26

1 Answers1

0

I have only little knowledge of programming, so I can't really give you the answer but instead maybe I can give you some directions from several links. Also I don't know how familiar you are with 3D modelling terms and concepts, like mesh, plane, vertex, edge, face etc.

Anyway, I read that numpy is already bundled with Blender, so maybe you just need to read the Blender Python API or read here first for introduction to scripting in Blender.

Then from this problem, and a quick read of API documentation, I think you need to read the Data Access module (bpy.data), Operators module (bpy.ops), Mesh module (bpy.mesh), and maybe some others then you can write the code to create that array of planes that you want.

lintang_biru
  • 401
  • 2
  • 5