Skip to content

Add another "single state" variable to ND-tree node #12

@HactarCE

Description

@HactarCE

Currently there is a field, single_state: Option<u8> that holds None if the node contains more than one cell state value or Some(state) if all cells in the node have state state.

I'd like to retype this field to the enum:

enum CellsSummary {
    /// All cells have the same state.
    SingleState(u8),
    /// There is a mix of zero and nonzero cells; all nonzero cells have the same state.
    SingleNonzeroState(u8),
    /// There are multiple nonzero cell states.
    Mixed,
}

This will enable rendering while zoomed to can include colors even in sparsely populated regions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions