TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct ContourRange in Tinman.Terrain.Heightmaps.Painting

Describes a contour line and contour fill.

struct ContourRange implements IEquatable<ContourRange>

See also:

ContourValue

Configuration

Config

The configurator object for this type.

public static property Config { get }
type IConfigurator<ContourRange>
value [not-null] The configurator object.

ConfigValue

The configurator object for ContourValue.

public static readonly field ConfigValue
type IConfigurator<ContourValue>

Public / Attributes

Range

The contour value range to map to contour index zero.

public readonly field Range
type RangeD

Step

The step value away from Range that increments resp. decrements the contour index value.

public readonly field Step
type float64

Public / Constructors

ContourRange

Creates a new instance of ContourRange.

public constructor ContourRange (float64 offset, float64 step)
params offset Contour value to map to contour index zero.
  step [>=0] Contour value step away from offset that corresponds to an incremented resp. decremented contour index.

Creates a new instance of ContourRange.

public constructor ContourRange (RangeD range, float64 step = 0)
params range Contour value range to map to contour index zero.
  step [>=0] Contour value step away from the start resp. end of range that corresponds to an incremented resp. decremented contour index. Defaults to 0.

Public / Methods

ComputeContour

Computes a contour index of a sample in a heightmap.

[Pure]
public method ComputeContour (float64 value)
type int32
params value The input contour value (see ContourValue).
returns The output contour index: Lines will be drawn where adjacent samples have different indices. Areas where the contour index is zero will be filled.

Equals

public method Equals (ContourRange other)
type bool
params other