Skip to content

Commit 325e0fa

Browse files
rrdlsrrdls
andauthored
feat: add units classes (#69)
Co-authored-by: rrdls <renato.lima@ctec.ufal.br>
1 parent 188d044 commit 325e0fa

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/fragments/src/Importers/IfcImporter/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class IfcImporter {
5252
classes = {
5353
elements: new DataSet<number>([...ifcClasses.elements]),
5454
abstract: new DataSet<number>([
55+
...ifcClasses.units,
5556
...ifcClasses.base,
5657
...ifcClasses.materials,
5758
...ifcClasses.properties,

packages/fragments/src/Importers/IfcImporter/src/classes.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import * as WEBIFC from "web-ifc";
22

33
export const ifcClasses = {
4+
units: new Set([
5+
WEBIFC.IFCUNITASSIGNMENT,
6+
WEBIFC.IFCSIUNIT,
7+
WEBIFC.IFCNAMEDUNIT,
8+
WEBIFC.IFCDERIVEDUNIT,
9+
WEBIFC.IFCMONETARYUNIT,
10+
]),
411
base: new Set([
512
WEBIFC.IFCPROJECT,
613
WEBIFC.IFCSITE,

0 commit comments

Comments
 (0)