sealed class Tinman.Terrain.Meshing.Chunking

The Chunking class traverses the filtered mesh (see IMeshFilters.FilterIn), generates zero or more ChunkingBatch values for each mesh sector, and puts an explicit mark on it (see MeshTree.SectorMark), if it has at least one batch.

The following vertex data semantics are used by this class:

Public / Constructors


public constructor Chunking → ()

Creates a new instance of Chunking.

Public / Attributes


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


public attribute MaterialCount → (get,set)

value : int32

The maximum number of materials per chunk.

Maximum number of allowed materials per chunk.

Defaults to 4.


public attribute MaterialGroups → (get)

value : IVector<int64>

The list of material groups.

The material groups to use for generating chunked batches.

Each group is defined as a material mask (see Semantic.MaterialMask). Chunks will be generated separately for each material group.