Enum spectra::model::MaterialTree [] [src]

pub enum MaterialTree<M> {
    Leaf(M),
    Node(Vec<MaterialTree<M>>),
}

A material tree representing a possible interpretation of a model tree.

Only the leaves carry information about materials. The inner nodes are only used to match against the model tree to represent.

Variants

Methods

impl<M> MaterialTree<M>
[src]

Traverse a model tree and represent it by zipping both trees to each other.

If the zip is not total (partial zipping), non-matching nodes are just ignored.