brepjs API Reference
    Preparing search index...

    Function fill

    • Remove holes from a face by rebuilding it from only the outer wire.

      Equivalent to OpenSCAD's fill() — takes a 2D face with holes and returns a solid face with all internal cutouts filled in.

      Type Parameters

      Parameters

      Returns Result<
          ShapeHandle & { "[___brand]": "face"; "[___dim]": D } & {
              "[___oriented]": true;
          } & { "[___planar]": true },
      >