Interpolating a scalar field in a 3D space

后端 未结 3 681
闹比i
闹比i 2021-01-05 05:00

I have a 3D space (x, y, z) with an additional parameter at each point (energy), giving 4 dimensions of data in total.

I would like to find a set of x, y, z points w

相关标签:
3条回答
  • 2021-01-05 05:49

    Since you have a spatial mesh with constant spacing, you can identify all neighbors on opposite sides of the isosurface. Choose some form of interpolation (q.v. Reed Copsey's answer) and do root-finding along the line between each such neighbor.

    0 讨论(0)
  • 2021-01-05 05:49

    Why not try quadlinear interpolation?

    extend Trilinear interpolation by another dimension. As long as a linear interpolation model fits your data, it should work.

    0 讨论(0)
  • 2021-01-05 05:56

    There are quite a few options here...

    In order to get your energy into your mesh, you'll need to use some form of interpolation. Shepard's method is a common, and reasonably simple, method to implement, and tends to work well if your data distribution is reasonable.

    Once you have that done, you'll need to do some form of isosurface generation.

    There are some libraries out there to make this easy. Most notably, VTK includes python wrappers and has all of the tools required to do both of these steps.

    For details on how this could be done in VTK, you can check vtkShepardMethod and vtkContourFilter.

    0 讨论(0)
提交回复
热议问题