Chunking

Description

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

Chunking


public constructor Chunking → ()

Creates a new instance of Chunking.

Public / Attributes

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

Material​Count


public attribute MaterialCount → (get,set)

value : int32

[1..4]
The maximum number of materials per chunk.

Maximum number of allowed materials per chunk.

Defaults to 4.

Material​Groups


public attribute MaterialGroups → (get)

value : IVector<int64>

[not-null]
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.