CoverageFlags

Description

[Flags]
enum Tinman.Terrain.Heightmaps.CoverageFlags

Enumeration of possible flags for testing heightmap samples against zero or full coverage.

Public / Constants

None

public constant None → (0:int32)

The tested region contains no heightmap samples at all.

NotEmpty

public constant NotEmpty → (1:int32)

The tested region contains at least one heightmap sample with a HeightmapSample.Coverage greater than zero.

If only the NotEmpty flag is set, it means that all samples in the tested region have a HeightmapSample.Coverage of HeightmapSample.MaxValue30 (because the NotSolid flag is not set).

NotSolid

public constant NotSolid → (2:int32)

The tested region contains at least one heightmap sample with a HeightmapSample.Coverage less than HeightmapSample.MaxValue30.

If only the NotSolid flag is set, it means that all samples in the tested region have a HeightmapSample.Coverage of 0 (because the NotEmpty flag is not set).

Some

public constant Some → (3:int32)

The tested region contains heightmap samples that have a HeightmapSample.Coverage greater than 0 and less than HeightmapSample.MaxValue30.

When this flag is set, no other combinations are possible any more. So this value can be used to early exit in algorithms.