meshing.edge_detection.sample_grid

meshing.edge_detection.sample_grid(sdf, grid)

Evaluate the field at every lattice vertex.

Parameters

Name Type Description Default
sdf Callable[[Array], Array] JAX-traceable scalar field (point[3]) -> scalar. required
grid GridSpec Sampling grid. required

Returns

Name Type Description
np.ndarray Concrete values shaped like :attr:GridSpec.lattice_shape.