Closes a model and frees all related memory
Model handle retrieved by OpenModel, model must be closed after use
Creates a new ifc entity
Model handle retrieved by OpenModel
Type code
Arguments required by the entity
An object contining the parameters of the new entity
Creates a new ifc globally unqiue ID
Model handle retrieved by OpenModel
An randomly generated globally unique ID
Creates a new ifc type i.e. IfcLabel, IfcReal, ...
Model handle retrieved by OpenModel
Type code
Type value
An object with the parameters of the type
Creates a new model and returns a modelID number
Optional
settings: LoaderSettingsModelID
Deletes an IFC line from the model
Model handle retrieved by OpenModel
express ID of the line to remove
Closes all models and frees all related memory. Please note that after calling this you must call Init() again to ensure web-ifc is in a working state.
Returns all alignments contained in the IFC model (IFC4x3 or superior)
model ID
Lists with horizontal and vertical curves as sets of points
Returns all crossSections in 2D contained in IFCSECTIONEDSOLID, IFCSECTIONEDSURFACE, IFCSECTIONEDSOLIDHORIZONTAL (IFC4x3 or superior)
model ID
Lists with the cross sections curves as sets of points
Returns all crossSections in 3D contained in IFCSECTIONEDSOLID, IFCSECTIONEDSURFACE, IFCSECTIONEDSOLIDHORIZONTAL (IFC4x3 or superior)
model ID
Lists with the cross sections curves as sets of points
Get all line IDs of a model
model ID
vector of all line IDs
Gets the list of all ifcTypes contained in the model
Model handle retrieved by OpenModel
Array of objects containing typeID and typeName
Get the coordination matrix
model ID
flat 4x4 matrix as array[16]
Looks up an entities express ID from its GlobalID.
Model handle retrieved by OpenModel
GobalID to be looked up
expressID numerical value
Load geometry for a single element
Model handle retrieved by OpenModel
ExpressID of the element
FlatMesh object
Retrieves the geometry of an element
Model handle retrieved by OpenModel
express ID of the element
Geometry of the element as a list of vertices and indices
Looks up an entities GlobalID from its ExpressID.
Model handle retrieved by OpenModel
express ID to be looked up
globalID string value
Gets the header information required by the user
Model handle retrieved by OpenModel
Type of header data you want to retrieve ifc.FILE_NAME, ifc.FILE_DESCRIPTION or ifc.FILE_SCHEMA
An object with parameters ID, type and arguments
Returns a list with all entity types that are present in the current schema
Model handle retrieved by OpenModel
Array of type codes
Gets the ifc line data for a given express ID
Model handle retrieved by OpenModel
express ID of the line
recursively flatten the line, default false
get the inverse properties of the line, default false
filters out all other properties from a inverse search, for a increase in performance. Default null
lineObject
Get all line IDs of a specific ifc type
model ID
ifc type,
if true, also returns all inherited types
vector of line IDs
Gets the ifc line data for a given express ID
Model handle retrieved by OpenModel
recursively flatten the line, default false
get the inverse properties of the line, default false
filters out all other properties from a inverse search, for a increase in performance. Default null
lineObject
Returns the type of a given ifc entity in the fiule.
Model handle retrieved by OpenModel
Line Number
IFC Type Code
Returns the maximum ExpressID value in the IFC file, ex.- #9999999
Model handle retrieved by OpenModel
Express numerical value
Fetches the ifc schema version of a given model
Model ID
IFC Schema version
Gets the name from a type code
Code
Name
Gets the next unused expressID
Model handle retrieved by OpenModel
Starting expressID value
The next unused expressID starting from the value provided
Gets the type code from a name code
type code
Returns the version number of web-ifc
The current version number as a string
Initializes the WASM module (WebIFCWasm), required before using any other functionality.
Optional
customLocateFileHandler: LocateFileHandlerFnAn optional locateFile function that let's you override the path from which the wasm module is loaded.
Evaluates if a type is subtype of IfcElement
Type code
True if subtype of Ifcelement, False if it is not subtype
Checks if a specific model ID is open or closed
Model handle retrieved by OpenModel
true if model is open, false if model is closed
Opens a model and returns a modelID number
Buffer containing IFC data (bytes)
Optional
settings: LoaderSettingsSettings for loading the model
ModelID or -1 if model fails to open
Opens a model and returns a modelID number
a function of signature (offset:number, size: number) => Uint8Array that will retrieve the IFC data
Optional
settings: LoaderSettingsSettings for loading the model
ModelID or -1 if model fails to open
Opens a set of models and returns model IDs
Array of Buffers containing IFC data (bytes)
Optional
settings: LoaderSettingsSettings for loading the model
Array of model IDs
Resets the Cached IFC Data - useful when changing the geometry of a model
Model handle retrieved by OpenModel
Saves a model to a Buffer
Model ID
Buffer containing the model data
Saves a model to a Buffer
Model ID
Buffer containing the model data
Set the transformation matrix
model ID
transformation matrix, flat 4x4 matrix as array[16]
Sets the path to the wasm file
path to the wasm file
if true, path is absolute, otherwise it is relative to executing script
Streams all meshes of a model
Model handle retrieved by OpenModel
callback function that is called for each mesh
Streams all meshes of a model with a specific ifc type
Model handle retrieved by OpenModel
types of elements to stream
callback function that is called for each mesh
Streams meshes of a model with specific express id
Model handle retrieved by OpenModel *
expressIDs of elements to stream
callback function that is called for each mesh
Writes a set of line to the model, can be used to write new lines or to update existing lines
Model handle retrieved by OpenModel
line object to write
Writes a line to the model, can be used to write new lines or to update existing lines
Model handle retrieved by OpenModel
Contains all the logic and methods regarding properties, psets, qsets, etc.