I would like to create a volume (for example a parallelepiped) in which I could set at every point/node (x,y,z) a magnetic vector (Bx,By,Bz) knowing that I take the datas from a .txt file.
After, the goal is to interpolate the vector field in the volume, and the useful information for the next will be the boundary of the volume and the values of the vector field at every point inside the magnetic volume.
One of my idea is to create a TGraph3 containing the geometry (the parallelepiped here).
SoI did it and I have my geometry. But now, I would like to add values of the magnetic field. For example, I could have 3 different TGraph3 for each component of my magnetic field and each component could be kind of weight to add at each node and that can be interpolated inside the volume.
I don’t know if I am clear. I did not find a way of setting the magnetic field. Would you have any idea ?
Thank you in advance,