warp.fem.adaptive_nanogrid_from_field#
- warp.fem.adaptive_nanogrid_from_field(
- coarse_grid,
- level_count,
- refinement_field,
- samples_per_voxel=64,
- grading=None,
- temporary_store=None,
Constructs a
warp.fem.AdaptiveNanogridfrom a coarse grid and a refinement field.- Parameters:
coarse_grid (Volume) – Base grid from which to start refining. No voxels will be added outside of the base grid.
level_count (int) – Maximum number of refinement levels
refinement_field (GeometryField) – Scalar field used as a refinement oracle. If the returned value is negative, the corresponding voxel will be carved out. Positive values indicate the desired refinement with 0.0 corresponding to the finest level and 1.0 to the coarsest level.
samples_per_voxel (int) – How many samples to use for evaluating the refinement field within each voxel
grading (str | None) – Supplementary grading condition, may be
None, “face” or “vertex”; seeenforce_nanogrid_grading()temporary_store (TemporaryStore | None) – Storage for temporary allocations
- Return type: