brepjs API Reference
    Preparing search index...

    Interface WireFinderFn

    interface WireFinderFn {
        _filters: readonly Predicate<Wire>[];
        _topoKind: TopoKind;
        and: (other: ShapeFinder<Wire>) => ShapeFinder<Wire>;
        either: (
            fns: ((f: ShapeFinder<Wire>) => ShapeFinder<Wire>)[],
        ) => ShapeFinder<Wire>;
        findAll: (shape: AnyShape<Dimension>) => Wire[];
        findUnique: (shape: AnyShape<Dimension>) => Result<Wire>;
        inList: (elements: Wire[]) => ShapeFinder<Wire>;
        isClosed: () => WireFinderFn;
        isOpen: () => WireFinderFn;
        negate: () => ShapeFinder<Wire>;
        not: (
            builderFn: (f: ShapeFinder<Wire>) => ShapeFinder<Wire>,
        ) => ShapeFinder<Wire>;
        ofEdgeCount: (count: number) => WireFinderFn;
        or: (other: ShapeFinder<Wire>) => ShapeFinder<Wire>;
        shouldKeep: (element: Wire) => boolean;
        when: (predicate: Predicate<Wire>) => ShapeFinder<Wire>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _filters: readonly Predicate<Wire>[]
    _topoKind: TopoKind
    and: (other: ShapeFinder<Wire>) => ShapeFinder<Wire>

    Intersect: element must match both this finder AND other.

    either: (
        fns: ((f: ShapeFinder<Wire>) => ShapeFinder<Wire>)[],
    ) => ShapeFinder<Wire>

    Combine filters with OR. Returns new finder.

    findAll: (shape: AnyShape<Dimension>) => Wire[]

    Find all matching elements from a shape.

    findUnique: (shape: AnyShape<Dimension>) => Result<Wire>

    Find exactly one matching element. Returns error if 0 or more than 1 match.

    inList: (elements: Wire[]) => ShapeFinder<Wire>

    Filter to elements in a list. Returns new finder.

    isClosed: () => WireFinderFn
    isOpen: () => WireFinderFn
    negate: () => ShapeFinder<Wire>

    Negate: invert all filters on this finder.

    not: (
        builderFn: (f: ShapeFinder<Wire>) => ShapeFinder<Wire>,
    ) => ShapeFinder<Wire>

    Invert a filter. Returns new finder.

    ofEdgeCount: (count: number) => WireFinderFn
    or: (other: ShapeFinder<Wire>) => ShapeFinder<Wire>

    Union: element must match this finder OR other.

    shouldKeep: (element: Wire) => boolean

    Check if an element passes all filters.

    when: (predicate: Predicate<Wire>) => ShapeFinder<Wire>

    Add a custom predicate filter. Returns new finder.