Function transvoxel::extraction::extract_from_field[][src]

pub fn extract_from_field<D, F>(
    field: F,
    block: &Block,
    threshold: D,
    transition_sides: TransitionSides
) -> Mesh where
    D: Density,
    F: ScalarField<D>, 
Expand description

Extracts an iso-surface Mesh for a ScalarField

Arguments:

  • field: the density field
  • block: the world zone for which to extract, and its subdivisions count
  • threshold: density value defining the iso-surface
  • transition_sides: the set of sides of the block which need to be adapted to neighbour double-resolution blocks (twice the subdivisions)