SimPEG.utils.model_builder.get_indices_sphere#
- SimPEG.utils.model_builder.get_indices_sphere(center, radius, cell_centers)[source]#
Get indices for cells whose centers lie inside a sphere
- Parameters:
- center(
dim)numpy.ndarray Location of the center of the sphere
- radius
float Radius of the sphere
- cell_centers(
n_cells,dim)numpy.ndarrayordiscretize.base.BaseMesh A mesh or its gridded cell center locations
- center(
- Returns: