IfcLoader
The IfcLoader component is responsible of converting IFC files into Fragments. 📕 Tutorial. 📘 API.
Extends
Implements
Properties
enabled
enabled:
boolean=true
Overrides
onDisposed
readonlyonDisposed:Event<string>
Implementation of
onIfcImporterInitialized
readonlyonIfcImporterInitialized:Event<IfcImporter>
An event triggered when the IFC importer is initialized.
onIfcStartedLoading
readonlyonIfcStartedLoading:Event<void>
An event triggered when the IFC file starts loading.
onSetup
readonlyonSetup:Event<void>
An event triggered when the setup process is completed.
settings
settings:
IfcFragmentSettings
The settings for the IfcLoader. It includes options for excluding categories, setting WASM paths, and more.
webIfc
webIfc:
IfcAPI
The instance of the Web-IFC library used for handling IFC data.
uuid
staticreadonlyuuid:"a659add7-1418-4771-a0d6-7d4d438e4624"
A unique identifier for the component. This UUID is used to register the component within the Components system.
Methods
cleanUp()
cleanUp():
void
Cleans up the IfcLoader component by resetting the Web-IFC library, clearing the visited fragments and fragment instances maps, and creating a new instance of the Web-IFC library.
Returns
void
Remarks
This method is called automatically after using the .load() method, so usually you don't need to use it manually.
Example
const ifcLoader = components.get(IfcLoader);
ifcLoader.cleanUp();