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).

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.