mymesh.implicit.grid2fun#
- mymesh.implicit.grid2fun(VoxelCoords, VoxelConn, Vals, method='linear', fill_value=None)[source]#
Converts a voxel grid mesh into a function that can be evaluated at any point within the bounds of the grid.
- Parameters:
VoxelCoords (List of Lists) – List of nodal coordinates for the voxel mesh
VoxelConn (List of Lists) – Nodal connectivity list for the voxel mesh.
Vals (list) – List of values at each node or at each element.
- Returns:
fun – Interpolation function, takes arguments (x,y,z), to return an evaluation of the function at the specified point.
- Return type:
function