MCPcopy Create free account
hub / github.com/ThatOpen/engine_clay / constructor

Method constructor

packages/clay/src/general/Project/index.ts:15–113  ·  view source on GitHub ↗
(model: Model)

Source from the content-addressed store, hash-verified

13 spatialChildren: SpatialChildren;
14
15 constructor(model: Model) {
16 super(model);
17
18 const organization = new IFC.IfcOrganization(
19 null,
20 new IFC.IfcLabel("That Open Company"),
21 null,
22 null,
23 null,
24 );
25
26 const person = new IFC.IfcPerson(
27 null,
28 null,
29 null,
30 null,
31 null,
32 null,
33 null,
34 null,
35 );
36
37 const personAndOrganization = new IFC.IfcPersonAndOrganization(
38 person,
39 organization,
40 null,
41 );
42
43 const application = new IFC.IfcApplication(
44 organization,
45 new IFC.IfcLabel("2.4.0"),
46 new IFC.IfcLabel("CLAY"),
47 new IFC.IfcLabel("CLAY"),
48 );
49
50 this.ownerHistory = new IFC.IfcOwnerHistory(
51 personAndOrganization,
52 application,
53 null,
54 IFC.IfcChangeActionEnum.NOTDEFINED,
55 null,
56 null,
57 null,
58 new IFC.IfcTimeStamp(new Date().getTime()),
59 );
60
61 const context = new IFC.IfcGeometricRepresentationContext(
62 null,
63 null,
64 new IFC.IfcDimensionCount(3),
65 new IFC.IfcReal(1.0e-5),
66 new IFC.IfcAxis2Placement3D(
67 IfcUtils.point(new THREE.Vector3()),
68 null,
69 null,
70 ),
71 null,
72 );

Callers

nothing calls this directly

Calls 2

pointMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected