Dear All,
I am a electronics engineer and I often use Matlab software. It is basically a software that enables you make computations with matrices. What I need is to export my 3D model into such a file that I can convert it into a Matlab 3D matrix to perform further analysis.
To make things more clear I want to give an example. Say that you have an optical fiber in cylindrical shape which has is composed of a core region and a cladding. That is think of a thick pipe (the cladding) which is is filled by a cylinder of different material (the core). First I want to mesh the 3D model I draw in Blender in to small equivalent cubes. What I want from Blender is to give me an output file saying:
The cube (0,0,0) is made of material_1 (or belongs to cladding)
The cube (0,0,1) is made of material_1
…
The cube (j,k,l) is made of material_n (or belongs to core)
…
in some format.
I would prefer this kind of format: For the fiber we should get:
assuming material2 is air, material0 is cladding, material1 is the core:
for z=0 plane:
222222222222222222222
222222000000000222222
222200000000000002222
222000001111100000222
220000011111110000022
220000011111110000022
222000001111100000222
222200000000000002222
222222000000000222222
222222222222222222222
for z=1 plane:
222222222222222222222
222222000000000222222
222200000000000002222
222000001111100000222
220000011111110000022
220000011111110000022
222000001111100000222
222200000000000002222
222222000000000222222
222222222222222222222
…
and so on.
I think these kinds of files are called voxel files.
Is there any such available plugin to convert a model to this format.? If not is there any one willing to do such a plugin? There are some available software for simulating such things but they really lack a 3D modeling interface. So if such a thing is available I am sure many engineers will use this to load a 3D model as a Matlab matrix.
Best Regards,
Erman