Heightmap.Scale

Description

Name

class Tinman.Heightmap.Scale

Derived from

Heightmap

A heightmap that wraps another heightmap and scales it to the given size. It is both possible to shrink and enlarge the wrapped heightmap.

Shrinking is performed by ignoring certain raster rows and columns. Enlarging is performed by applying Catmull-Rom interpolation.

Fields / Required

heightmap

Type

Heightmap

Constraint

# != null

The heightmap to scale.


size

Type

number

Constraint

# > 0

The new heightmap size (i.e. cubemap edge length), in samples. Must be a power of two, plus one.

Fields / External

id

Type

Dataset.Id

Returns a unique identifier for this dataset.


metadata

Returns dataset metadata information.


georef

Returns geo-referencing information.


info

Holds detail information about this heightmap.