brepjs API Reference
    Preparing search index...

    Function makeBaseBox

    • Create a box centered on the XY plane and extruded along Z.

      Parameters

      • xLength: number

        Width of the box along X.

      • yLength: number

        Depth of the box along Y.

      • zLength: number

        Height of the box along Z (extrusion distance).

      Returns Shape3D

      The extruded 3D box shape.

      const box = makeBaseBox(10, 20, 5);