brepjs API Reference
    Preparing search index...

    Function extrude

    • Extrude a face to produce a solid, or an open wire to produce a shell.

      Parameters

      • wire: Shapeable<Wire<Dimension>>
      • height: number | Vec3

        A number for Z-direction extrusion, or a Vec3 direction vector. A number is not a distance along the face normal: a face whose plane contains Z needs a vector.

      Returns Result<Shell>

      Result containing the extruded solid (a shell for a wire), or an error if validation or operation fails.

    • Extrude a face to produce a solid, or an open wire to produce a shell.

      Parameters

      • face: Shapeable<
            ShapeHandle & { "[___brand]": "face"; "[___dim]": Dimension } & {
                "[___oriented]": true;
            } & { "[___planar]": true },
        >

        The face to extrude, or an open wire.

      • height: number | Vec3

        A number for Z-direction extrusion, or a Vec3 direction vector. A number is not a distance along the face normal: a face whose plane contains Z needs a vector.

      Returns Result<Solid>

      Result containing the extruded solid (a shell for a wire), or an error if validation or operation fails.