brepjs API Reference
    Preparing search index...

    Function adjacentFaces

    • Get all faces that share at least one edge with the given face.

      The returned list does not include the input face itself. Uses the cached edge→faces adjacency map for the parent shape.

      Type Parameters

      Parameters

      • parent: AnyShape<D>

        The parent shape to search within.

      • face: Face<D>

        The face whose neighbors to find.

      Returns Face<D>[]

      Array of unique adjacent faces (excluding the input face).