Struct brickadia::util::octree::SaveOctree[][src]

pub struct SaveOctree { /* fields omitted */ }
Expand description

A wrapper around some save data to fetch bricks quickly.

Implementations

Construct a SaveOctree over a SaveData, consuming it.

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.