Search Results for

    Show / Hide Table of Contents

    Interface IVoxelGrid

    Access to a voxel grid. Intended to be implemented by VoxelGrid and IrregularVoxelGrid only.

    Namespace: CarbideFunction.Wildtile
    Syntax
    public interface IVoxelGrid

    Fields

    outOfBoundsVoxelIndex

    Placeholder value to indicate that a voxel is out of bounds.

    Declaration
    public const int outOfBoundsVoxelIndex = -143
    Field Value
    Type Description
    System.Int32

    Properties

    Voxels

    Declaration
    IReadOnlyList<IVoxelGrid.Voxel> Voxels { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IVoxelGrid.Voxel>

    Methods

    GetVoxel(Int32)

    Declaration
    IVoxelGrid.Voxel GetVoxel(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    IVoxelGrid.Voxel

    SetVoxelContents(Int32, Int32)

    Declaration
    void SetVoxelContents(int index, int newContents)
    Parameters
    Type Name Description
    System.Int32 index
    System.Int32 newContents

    Visit(IVoxelGridVisitor)

    Declaration
    void Visit(IVoxelGridVisitor visitor)
    Parameters
    Type Name Description
    IVoxelGridVisitor visitor
    In This Article
    Generated by DocFX Wildtile Documentation