Struct tiling::model::Model[][src]

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

Represents a tiling composed of an arbitrary number of regular polygons. A model is used to imperatively construct a tiling by building small patterns of shapes that are then repeated to fill a two-dimensional space. Use render to render the tiling. Use render_dual to render the dual tiling.

Implementations

Returns an empty model.

Adds shape to the model.

Attaches shape to every edge in edges of each shape in indexes.

Fills the rest of the surface with the pattern contained by the shapes with index in indexes.

Renders the model.

Renders the model’s dual tiling.

Trait Implementations

Formats the value using the given formatter. Read more

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.