brepjs API Reference
    Preparing search index...

    Interface VertexFinderFn

    interface VertexFinderFn {
        _filters: readonly Predicate<Vertex>[];
        _topoKind: "vertex" | "edge" | "wire" | "face";
        atDistance: (
            distance: number,
            point?: Vec3,
            tolerance?: number,
        ) => VertexFinderFn;
        atPosition: (point: Vec3, tolerance?: number) => VertexFinderFn;
        either: (
            fns: ((f: ShapeFinder<Vertex>) => ShapeFinder<Vertex>)[],
        ) => ShapeFinder<Vertex>;
        findAll: (shape: AnyShape) => Vertex[];
        findUnique: (shape: AnyShape) => Result<Vertex>;
        inList: (elements: Vertex[]) => ShapeFinder<Vertex>;
        nearestTo: (point: Vec3) => VertexFinderFn;
        not: (
            builderFn: (f: ShapeFinder<Vertex>) => ShapeFinder<Vertex>,
        ) => ShapeFinder<Vertex>;
        shouldKeep: (element: Vertex) => boolean;
        when: (predicate: Predicate<Vertex>) => ShapeFinder<Vertex>;
        withinBox: (min: Vec3, max: Vec3) => VertexFinderFn;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _filters: readonly Predicate<Vertex>[]
    _topoKind: "vertex" | "edge" | "wire" | "face"
    atDistance: (
        distance: number,
        point?: Vec3,
        tolerance?: number,
    ) => VertexFinderFn

    Filter vertices at a given distance from a point.

    atPosition: (point: Vec3, tolerance?: number) => VertexFinderFn

    Filter vertices at an exact position (within tolerance).

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

    Combine filters with OR. Returns new finder.

    findAll: (shape: AnyShape) => Vertex[]

    Find all matching elements from a shape.

    findUnique: (shape: AnyShape) => Result<Vertex>

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

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

    Filter to elements in a list. Returns new finder.

    nearestTo: (point: Vec3) => VertexFinderFn

    Filter vertices nearest to a reference point. Returns a new finder that keeps only the closest vertex.

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

    Invert a filter. Returns new finder.

    shouldKeep: (element: Vertex) => boolean

    Check if an element passes all filters.

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

    Add a custom predicate filter. Returns new finder.

    withinBox: (min: Vec3, max: Vec3) => VertexFinderFn

    Filter vertices within an axis-aligned bounding box.