Chunks
Moddable voxel sandbox for room-scale VR.
Public Member Functions | Public Attributes | Properties | List of all members
Chunks.Geometry.BlockVolume Class Reference
Inheritance diagram for Chunks.Geometry.BlockVolume:

Public Member Functions

 BlockVolume (IntVector size, Block block=null)
 
 BlockVolume (int xSize, int ySize, int zSize, Block block=null)
 
bool ResizeToFitNonEmpty ()
 
bool GetNonEmptyBounds (out IntVector min, out IntVector max)
 
IntVector GetTransformedSize (ref IntMatrix3 transform)
 
IntVector GetTransformedSize (ref IntMatrix3 transform, IntVector size)
 
void Clear (Block value)
 
void CopyFrom (BlockVolume volume)
 
void CopyFrom (BlockVolume volume, IntVector srcOffset, IntVector size, IntVector dstOffset)
 
void CopyFromWorld (IWorld world, IntVector srcMin, IntMatrix3 transform, bool ignoreEmpty=true)
 
void CopyFromWorld (IWorld world, IntVector srcMin, IntVector size, IntVector dstMin, IntMatrix3 transform, bool ignoreEmpty=true)
 
void CopyToWorld (IWorld world, IntVector dstMin, IntMatrix3 transform, bool ignoreEmpty=true)
 
void CopyToWorld (IWorld world, IntVector srcMin, IntVector size, IntVector dstMin, IntMatrix3 transform, bool ignoreEmpty=true)
 
PluginName[] GetRequiredPluginNames ()
 
void GenerateModel (ModelGenerator modelGen, int index)
 
IntVector GetModelOffset (int index)
 
void Dispose ()
 

Public Attributes

int ModelCount => _chunk.ModelCount
 

Properties

IntVector Size [get]
 

Constructor & Destructor Documentation

Chunks.Geometry.BlockVolume.BlockVolume ( IntVector  size,
Block  block = null 
)
Chunks.Geometry.BlockVolume.BlockVolume ( int  xSize,
int  ySize,
int  zSize,
Block  block = null 
)

Member Function Documentation

void Chunks.Geometry.BlockVolume.Clear ( Block  value)
void Chunks.Geometry.BlockVolume.CopyFrom ( BlockVolume  volume)
void Chunks.Geometry.BlockVolume.CopyFrom ( BlockVolume  volume,
IntVector  srcOffset,
IntVector  size,
IntVector  dstOffset 
)
void Chunks.Geometry.BlockVolume.CopyFromWorld ( IWorld  world,
IntVector  srcMin,
IntMatrix3  transform,
bool  ignoreEmpty = true 
)
void Chunks.Geometry.BlockVolume.CopyFromWorld ( IWorld  world,
IntVector  srcMin,
IntVector  size,
IntVector  dstMin,
IntMatrix3  transform,
bool  ignoreEmpty = true 
)
void Chunks.Geometry.BlockVolume.CopyToWorld ( IWorld  world,
IntVector  dstMin,
IntMatrix3  transform,
bool  ignoreEmpty = true 
)
void Chunks.Geometry.BlockVolume.CopyToWorld ( IWorld  world,
IntVector  srcMin,
IntVector  size,
IntVector  dstMin,
IntMatrix3  transform,
bool  ignoreEmpty = true 
)
void Chunks.Geometry.BlockVolume.Dispose ( )
void Chunks.Geometry.BlockVolume.GenerateModel ( ModelGenerator  modelGen,
int  index 
)
IntVector Chunks.Geometry.BlockVolume.GetModelOffset ( int  index)
bool Chunks.Geometry.BlockVolume.GetNonEmptyBounds ( out IntVector  min,
out IntVector  max 
)
PluginName [] Chunks.Geometry.BlockVolume.GetRequiredPluginNames ( )
IntVector Chunks.Geometry.BlockVolume.GetTransformedSize ( ref IntMatrix3  transform)
IntVector Chunks.Geometry.BlockVolume.GetTransformedSize ( ref IntMatrix3  transform,
IntVector  size 
)
bool Chunks.Geometry.BlockVolume.ResizeToFitNonEmpty ( )

Member Data Documentation

int Chunks.Geometry.BlockVolume.ModelCount => _chunk.ModelCount

Property Documentation

IntVector Chunks.Geometry.BlockVolume.Size
get

The documentation for this class was generated from the following file: