Skip to content

When no contours are found, contour should not return a ContourLevel of 0 lines? #80

@aabacchus

Description

@aabacchus

The hierarchy of types/structs you have makes it possible to have a ContourLevel at an isovalue but containing 0 lines, which doesn't make sense. Then, the lack of error means this simple function definition

contours(x, y, z, levels; VT=nothing) = ContourCollection([contour(x, y, z, l; VT=VT) for l in levels])

gives you a ContourCollection of 1 ContourLevel, but that contour has no lines. Can this interface be improved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions