TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct PlantingBatch in Tinman.Terrain.Meshing

A batch of planted geometry instances.

struct PlantingBatch implements IComparable<PlantingBatch>
  IEquatable<PlantingBatch>

Remarks

PlantingBatch values have this sort order:

  1. GeometryId (ascending)
The Range method can used to obtain the geometry instance range in the VertexBufferCache object.

See also:

Planting

Public / Attributes

GeometryId

The geometry ID of this batch.

public readonly field GeometryId
type int32

See also:

PlantingOptions.GeometryId

Index

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

public property Index { get }
type int32
value [>=0] The zero-based batch index.

Public / Methods

Bounds

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

public method Bounds (Planting planting, BoxSoup bounds)
params planting [not-null] The Planting object that has created this batch.
  bounds [not-null] The output box soup.

Chunk

public method Chunk (Planting planting)
type PlantingChunk
params planting

CompareTo

public method CompareTo (PlantingBatch other)
type int32
params other

Equals

public method Equals (PlantingBatch other)
type bool
params other

Range

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

public method Range (VertexBufferCache cache)
type RangeI
params cache The instance cache (see InstanceCache).
returns The instance range of this batch. Will be empty (see IsEmpty) if the batch is not present in the given cache.