Regions

Description

sealed class Tinman.Terrain.Meshing.Regions

The Regions class traverses the filtered mesh (see IMeshFilters.FilterIn), generates a SectorBatch for each mesh sector that contains data of the given heightmap (see Heightmap) and puts an explicit mark on it (see MeshTree.SectorMark).

The following vertex data semantics are used by this class:

Public / Constructors

Regions


public constructor Regions → ()

Creates a new instance of Regions.

Public / Attributes

Block­Size


public attribute BlockSize → (get,set)

value : int32

[pow2]
The heightmap block size, in samples.

The minimum heightmap block size to process.

Defaults to 512 (see IHeightmap.HasRegion).

Filter­In


public attribute FilterIn → (get,set)

value : MeshTreeFilter

The filter or null.

The mesh tree input filter to use for querying sector culling and marks.

The default value is null (i.e. all mesh sectors are visited).

Heightmap


public attribute Heightmap → (get,set)

value : IHeightmap

The heightmap or null.

The heightmap for which to compute regions.

When set to null, the heightmap of the bound mesh is used (see IMesh.Heightmap).

Is­Busy


public attribute IsBusy → (get)

value : bool

true if coverage data is still being fetched for processing,
false if all coverage data has been processed.

Is this Regions object still busy with fetching coverage data?

When this property returns true, IBatchRendererBase.ComputeBatches should be called one more time.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.