Bitbybit Docs
    Preparing search index...

    Class IFCMaterialsBeta

    The materials elements are made of: plain materials with an optional colour, and layer sets that stack materials into the thickness of a wall or slab. Materials and layer sets are referred to by their names, which are unique in a model.

    Index

    Constructors

    materials

    Constructors

    materials

    • Beta

      Adds a material, which layer sets, columns and beams then refer to by its name.

      With a color, the material carries a surface style that viewers show it in.

      Parameters

      Returns Promise<IfcModelPointer>

      A new model with the material

      model = await bitbybit.ifc.materials.add({ model, name: "Brick", category: "brick", color: "#b5651d" });
      
    • Beta

      Adds a layer set: materials stacked in order, each with its thickness, which walls, wall types, slabs and roofs are then made of.

      A wall's first layer is on its right face, looking from its start to its end; a slab's or a roof's first layer is at its top. A layer's material must have been added before, by name.

      Parameters

      Returns Promise<IfcModelPointer>

      A new model with the layer set

      model = await bitbybit.ifc.materials.addLayerSet({
      model,
      name: "Exterior wall",
      layers: [{ material: "Brick", thickness: 115 }, { material: "Insulation", thickness: 100 }],
      });