brepjs API Reference
    Preparing search index...

    Function facesOfEdge

    • Get all faces adjacent to a given edge within a parent shape.

      An edge typically borders exactly two faces in a solid, or one face if the edge is on a boundary.

      Parameters

      • parent: AnyShape

        The parent shape to search within.

      • edge: Edge

        The edge whose adjacent faces to find.

      Returns Face[]

      Array of unique faces containing the given edge.