PlantingBatch

Description

struct Tinman.Terrain.Meshing.PlantingBatch

Output batch of the Planting class.

PlantingBatch values have the following natural sort order:

  1. GeometryId (ascending)

The Range method can used to obtain the geometry instance range in the VertexBufferCache object.

See also

Planting

Public / Constants

Empty


public static readonly attribute Empty → (PlantingBatch)

The empty batch.

Public / Methods

Bounds


public method Bounds → (2)

planting in : Planting

[not-null]
The Planting object that has created this batch.

bounds in : BoxSoup

[not-null]
The output box soup.

Outputs the bounds of this planting batch to the given box soup.

Chunk


public method Chunk → (1)

planting in : Planting

[not-null]
The enclosing Planting object.

returns → PlantingChunk

The PlantingChunk value.

Returns the PlantingChunk value for this batch.

Range


public method Range → (1)

cache in : VertexBufferCache

The instance cache (see Planting.InstanceCache).

returns → RangeI

The instance range of this batch. Will be empty (see RangeI.IsEmpty) if the batch is not present in the given cache in.

Returns the instance data range of this batch in the given instance cache.

Public / Attributes

Geometry​Id


public readonly attribute GeometryId → (int32)

The geometry ID of this batch.

Index


public attribute Index → (get)

value : int32

[>=0]
The zero-based batch index.

Returns the index of this batch in the containing geometry chunk.