ReadonlyclassesAll BimIfcClass instances referenced by BimProduct's in the IFC file this instance represents.
ReadonlydisciplineThe discipline of the IFC file this instance represents.
ReadonlyfloorsAll IfcBuildingStorey (BimIfcBuildingStorey) instances in the IFC file this instance represents.
ReadonlygeometricUrl where the IFC geometric features file (.geom-feature file) will be retrieved from.
ReadonlygeometryThe format that the geometry is stored in.
ReadonlygeometryUrl where the IFC geometry (.geom file) will be retrieved from.
ReadonlyhasWhether batch vertex data writing is supported via WASM.
ReadonlyifcThe IFC change (file) this instance represents.
ReadonlyifcThe name of the IFC file this instance represents.
ReadonlyifcThe total number of BimProductMesh instances in the IFC file this instance represents. Same as meshCount.
ReadonlyifcThe url where the contents of the IFC file can be retrieved from.
ReadonlyindexThe IFC index (.idx file) of the IFC file this instance represents. This describes (in a very raw format) the content of the IFC file. It does not include any geometry or property sets.
ReadonlyindexUrl where the IFC index (.idx file) will be retrieved from.
ReadonlyloaderThe loader this instance belongs to.
Optional ReadonlyloadThe BimApiIfcObjectsLoadOptions options (if any) that was used when this instance was created.
ReadonlymaterialsReference to a Materials instance.
ReadonlymeshThe total number of BimProductMesh instances in the IFC file this instance represents. Same as ifcProductsWithGeometryCount.
ReadonlynumberThe total number of indices contained in all instances of BimProductMesh in this IFC file.
ReadonlynumberThe total number of triangles contained in all instances of BimProductMesh in this IFC file.
ReadonlynumberThe total number of vertices contained in all instances of BimProductMesh in this IFC file.
ReadonlyproductsAll IFC products in the IFC file this instance represents. Here represented as a flat list.
ReadonlyprojectThe IfcProject instance of the IFC file this instance represents.
ReadonlypropertiesUrl where the IFC property set (.prop file) will be retrieved from.
ReadonlyspacesAll IfcSpace (BimIfcSpace) instances in the IFC file this instance represents.
ReadonlystylesAll IFC styles that the BimProductMesh instances in the IFC file refers to. The styles are used to color the meshes.
Optional ReadonlytransformAn optional transform for the IFC file. This transform will be applied to all IFC product geometries
ReadonlytransformsReference to the transform repository this instance uses when transforming IFC product geometries.
ReadonlytypeReference to the type object repository this instance uses for type properties.
ReadonlywasmWASM memory usage in bytes.
Ensures that the vertex data is loaded.
A promise that resolves to a boolean. See it as a signal. I will be true if the call actualy loaded the data. Otherwhise it will be false (data loading is either in progress or has completed).
Gets the vertex data for a given product mesh descriptor.
The product mesh descriptor.
The vertex data.
Loads the property sets and assigns them to the IFC products contained within this instance.
A promise that resolves to a boolean indicating whether the property set was loaded
Calculates, or extends a existing, axis-aligned bounding box (AABB) of the regions in the IFC file this instance represents. The provided min, and max values will be updated to contain the min and max values of the AABB.
Will be set to min vector of the AABB after call. If not part of existing AABB it must be set to (Number.MAX_VALUE, Number.MAX_VALUE, Number.MAX_VALUE)
Will be set to max vector of the AABB after call. If not part of existing AABB it must be set to (Number.MIN_VALUE, Number.MIN_VALUE, Number.MIN_VALUE)
Optionalo: { onlyMostPopulatedRegions?: boolean }Optional. Options object. If onlyMostPopulatedRegions is set to true then only the most populated regions will be considered.
true if a valid AABB was calculated. Otherwise false. If false is returned then the min and max values will not be updated.
// Example of how to calculate a AABB that encompasses the most populated regions of two IFC files.
const min = setMax(Vector3.Zero());
const max = setMin(Vector3.Zero());
// min and max will now contain the min and max values of the AABB encompassing the mostly populated region in loaderElementA.
loaderElementA.tryCreateOrExtendAABBFromRegions(min, max, { onlyMostPopulatedRegions: true});
// min and max will now contain the min and max values of the AABB that encompasses both loaderElementA and loaderElementB.
loaderElementB.tryCreateOrExtendAABBFromRegions(min, max, { onlyMostPopulatedRegions: true});
Writes vertex data for multiple meshes in a single batch operation using WASM. Falls back to undefined if batch support is not available.
The meshes to write.
The destination geometry arrays.
The offset in the geometry arrays.
The batch result containing AABB and counts, or undefined if batch is not available.
Writes the vertex data to the specified destination.
The IFC product mesh.
The transformation matrix.
The destination geometry arrays.
The offset in the geometry arrays.
The axis-aligned bounding box.
The actual vertex and index counts written.
Represents an IFC file and provides access to its data.