@bldrs-ai/conway 0.8.750 → 0.9.789
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -29
- package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmNode.js +1 -1
- package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmWeb.js +1 -1
- package/compiled/dependencies/conway-geom/interface/conway_geometry.d.ts +19 -0
- package/compiled/dependencies/conway-geom/interface/conway_geometry.d.ts.map +1 -1
- package/compiled/dependencies/conway-geom/interface/conway_geometry.js +31 -0
- package/compiled/dependencies/conway-geom/interface/geometry_object.d.ts +4 -0
- package/compiled/dependencies/conway-geom/interface/geometry_object.d.ts.map +1 -1
- package/compiled/dependencies/conway-geom/interface/parameters/params_get_boolean_result.d.ts +1 -0
- package/compiled/dependencies/conway-geom/interface/parameters/params_get_boolean_result.d.ts.map +1 -1
- package/compiled/dependencies/conway-geom/interface/parse_buffer.d.ts +11 -0
- package/compiled/dependencies/conway-geom/interface/parse_buffer.d.ts.map +1 -0
- package/compiled/dependencies/conway-geom/interface/parse_buffer.js +1 -0
- package/compiled/src/AP214E3_2010/ap214_command_line_main.js +11 -13
- package/compiled/src/AP214E3_2010/ap214_geometry_extraction.js +0 -1
- package/compiled/src/AP214E3_2010/ap214_geometry_extraction.test.js +15 -13
- package/compiled/src/AP214E3_2010/ap214_step_model.d.ts.map +1 -1
- package/compiled/src/AP214E3_2010/ap214_step_model.test.js +12 -1
- package/compiled/src/AP214E3_2010/ap214_step_parser.d.ts.map +1 -1
- package/compiled/src/core/canonical_mesh.d.ts +1 -1
- package/compiled/src/core/canonical_mesh.d.ts.map +1 -1
- package/compiled/src/core/geometry_aggregator.test.js +7 -7
- package/compiled/src/core/packed_mesh.test.js +4 -4
- package/compiled/src/ifc/ifc_command_line_main.js +17 -16
- package/compiled/src/ifc/ifc_geometry_extraction.d.ts +6 -4
- package/compiled/src/ifc/ifc_geometry_extraction.d.ts.map +1 -1
- package/compiled/src/ifc/ifc_geometry_extraction.js +107 -102
- package/compiled/src/ifc/ifc_geometry_extraction.test.js +4 -4
- package/compiled/src/ifc/ifc_model_geometry.d.ts +4 -0
- package/compiled/src/ifc/ifc_model_geometry.d.ts.map +1 -1
- package/compiled/src/ifc/ifc_model_geometry.js +13 -0
- package/compiled/src/ifc/ifc_property_extraction.test.js +12 -1
- package/compiled/src/ifc/ifc_regression_main.js +5 -3
- package/compiled/src/ifc/ifc_scene_builder.test.js +11 -8
- package/compiled/src/ifc/ifc_step_model.d.ts +1 -0
- package/compiled/src/ifc/ifc_step_model.d.ts.map +1 -1
- package/compiled/src/ifc/ifc_step_model.js +1 -0
- package/compiled/src/ifc/ifc_step_model.test.js +12 -1
- package/compiled/src/ifc/ifc_step_parser.d.ts +1 -0
- package/compiled/src/ifc/ifc_step_parser.d.ts.map +1 -1
- package/compiled/src/ifc/ifc_step_parser.js +1 -0
- package/compiled/src/step/parsing/step_deserialization_functions.d.ts +1 -1
- package/compiled/src/step/parsing/step_deserialization_functions.d.ts.map +1 -1
- package/compiled/src/step/parsing/step_deserialization_functions.js +1 -1
- package/compiled/src/step/parsing/step_parser.d.ts +1 -1
- package/compiled/src/step/parsing/step_parser.d.ts.map +1 -1
- package/compiled/src/step/parsing/step_parser.js +3 -3
- package/compiled/src/step/parsing/step_vtable_builder.d.ts +4 -3
- package/compiled/src/step/parsing/step_vtable_builder.d.ts.map +1 -1
- package/compiled/src/step/parsing/step_vtable_builder.js +5 -4
- package/compiled/src/step/step_entity_base.d.ts +27 -2
- package/compiled/src/step/step_entity_base.d.ts.map +1 -1
- package/compiled/src/step/step_entity_base.js +77 -15
- package/compiled/src/step/step_entity_internal_reference.d.ts +1 -0
- package/compiled/src/step/step_entity_internal_reference.d.ts.map +1 -1
- package/compiled/src/step/step_external_mapping.test.js +12 -1
- package/compiled/src/step/step_model_base.d.ts.map +1 -1
- package/compiled/src/step/step_model_base.js +1 -0
- package/compiled/src/version/version.js +1 -1
- package/compiled/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -8,52 +8,60 @@ Conway includes two major subcomponents:
|
|
|
8
8
|
|
|
9
9
|
## Getting Started
|
|
10
10
|
|
|
11
|
-
###
|
|
12
|
-
|
|
11
|
+
### Windows Setup
|
|
12
|
+
1. [Install MinGW-64](https://github.com/msys2/msys2-installer/releases/download/2022-06-03/msys2-x86_64-20220603.exe) and add ```g++.exe``` location to your PATH variable.
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
sudo apt-get update && \
|
|
17
|
-
sudo apt-get install -y dotnet-sdk-6.0
|
|
18
|
-
```
|
|
14
|
+
### MacOS Setup
|
|
19
15
|
|
|
20
|
-
|
|
16
|
+
1. Install the `gmake` and `node` dependencies via Homebrew (```brew install gmake node```).
|
|
17
|
+
|
|
18
|
+
### EMSDK Setup
|
|
19
|
+
1. Clone the [EMSDK](https://github.com/emscripten-core/emsdk) repo and add it to your path (see their instructions)
|
|
20
|
+
2. Conway is using `3.1.72`
|
|
21
21
|
```
|
|
22
|
-
|
|
22
|
+
> cd $EMSDK
|
|
23
|
+
> ./emsdk install 3.1.72
|
|
24
|
+
> ./emsdk activate 3.1.72
|
|
25
|
+
> cd $CONWAY
|
|
26
|
+
conway> emcc -v
|
|
27
|
+
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.72 (437140d149d9c977ffc8b09dbaf9b0f5a02db190)
|
|
28
|
+
...
|
|
23
29
|
```
|
|
24
30
|
|
|
25
31
|
### Initial Build
|
|
26
|
-
|
|
27
|
-
Clone the repository, then in the root directory of the repository, run the yarn install, followed by using yarn to initialise the IFC-gen submodule:
|
|
28
|
-
```
|
|
29
|
-
# 1) Setup your EMSDK environment
|
|
30
|
-
# 2) Make sure you're in main repo, not fork
|
|
31
|
-
git pull # if you get an error about a submodule not found, run yarn submodule-update here and then pull again
|
|
32
|
-
yarn install
|
|
33
|
-
yarn submodule-update
|
|
34
|
-
|
|
35
|
-
cd dependencies/conway-geom/dependencies/wasm/
|
|
36
|
-
# Answer yes or all to replace files if they've already been unzipped before
|
|
37
|
-
unzip dependencies.zip
|
|
38
|
-
cd -
|
|
39
32
|
|
|
33
|
+
Clone the Conway repository, then in the root directory of the repository:
|
|
34
|
+
```
|
|
35
|
+
# Make sure EMSDK environment is set up.
|
|
36
|
+
yarn setup
|
|
40
37
|
yarn build
|
|
41
38
|
yarn test
|
|
42
39
|
```
|
|
43
40
|
|
|
44
|
-
###
|
|
45
|
-
|
|
41
|
+
### Example Uses
|
|
42
|
+
You can now load your IFC files. From the Conway root:
|
|
43
|
+
1. ```yarn browser model.ifc```
|
|
44
|
+
2. ```yarn validator model.ifc "IFCWINDOW.OverallHeight <= 1500"```
|
|
46
45
|
|
|
47
|
-
|
|
46
|
+
See the full example docs at [Browser.md](examples/Browser.md) and [Validator.md](examples/Validator.md)
|
|
47
|
+
|
|
48
|
+
## Development
|
|
49
|
+
Update your client with changes since your last sync:
|
|
48
50
|
```
|
|
49
|
-
|
|
51
|
+
git pull
|
|
52
|
+
yarn setup
|
|
50
53
|
```
|
|
51
54
|
|
|
52
|
-
For the
|
|
55
|
+
For the full build of both conway (TypeScript) and conway-geom (WASM subproject):
|
|
53
56
|
```
|
|
54
57
|
yarn build
|
|
55
58
|
```
|
|
56
59
|
|
|
60
|
+
Build just conway, not conway-geom, e.g. for updating just the Conway API or tools:
|
|
61
|
+
```
|
|
62
|
+
yarn build-incremental
|
|
63
|
+
```
|
|
64
|
+
|
|
57
65
|
For a full, clean rebuild:
|
|
58
66
|
```
|
|
59
67
|
yarn build-rebuild
|
|
@@ -69,8 +77,6 @@ And finally, using the watch functionality, you can also have the code automatic
|
|
|
69
77
|
yarn build-test-watch
|
|
70
78
|
```
|
|
71
79
|
|
|
72
|
-
If you have Visual Studio Code, Conway also comes with a Visual Studio Code workspace to add IDE accessability to these features, and also let you edit the IFC-gen C# code in place.
|
|
73
|
-
|
|
74
80
|
# Production NPM Build
|
|
75
81
|
```
|
|
76
82
|
yarn test
|