Struct brickadia::util::octree::SaveOctree [−][src]
pub struct SaveOctree { /* fields omitted */ }
Expand description
A wrapper around some save data to fetch bricks quickly.
Implementations
Take a reference to the inner SaveData
. This cannot be mutable as the octree
would have to rebuild. If you need to alter the SaveData and traverse again,
instead use into_inner()
to take out the SaveData
, make your changes,
and reconstruct with new(SaveData)
.
Get the size of a brick. This is its absolute size, regardless of rotation.
Gets the bounds of a brick as two points in space.
Fetch all bricks within some volume in space. This includes bricks that are partially in this volume.
Fetch all bricks that bound a volume on one of its sides. This includes bricks that are partially in this volume.
Fetch all bricks that bound a brick on one of its sides. This includes bricks that are partially in the bounding volume.
Return the inner SaveData
, consuming this SaveOctree
.