Skip to content

Commit

Permalink
Closes #818
Browse files Browse the repository at this point in the history
  • Loading branch information
beachtom committed Jul 7, 2024
1 parent 7593082 commit f3a5fa7
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 216 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"setup-mingw": "mingw-get instal msys-make gettext",
"build-release": "npm run build-wasm-release && npm run build-api && npm run build-cleanup",
"build-cleanup": "rimraf dist/helpers/log.ts && rimraf dist/helpers/properties.ts && rimraf dist/web-ifc-api.ts && rimraf dist/ifc-schema.ts",
"build-debug": "npm run build-wasm-debug && npm run build-api",
"build-debug": "npm run build-wasm-debug && npm run build-api && npm run build-cleanup",
"publish-repo": "npm run set-version && cd dist && npm publish",
"build-publish-repo": "npm run build-release && cpy ./npmrc ./dist/ --rename=.npmrc && cd dist && npm publish",
"copy-to-dist": "make-dir dist && cpy \"src/cpp/build_wasm/*.js\" dist && cpy \"src/cpp/build_wasm/*.wasm\" dist ",
"copy-debug-to-dist": "make-dir dist && cpy \"src/cpp/build_wasm_debug/*.js\" dist && cpy \"src/cpp/build_wasm_debug/*.wasm\" dist ",
"build-wasm-debug": "make-dir src/cpp/build_wasm_debug && cd src/cpp/build_wasm_debug && emcmake cmake .. -DEMSCRIPTEN=true -DCMAKE_BUILD_TYPE=Debug && emmake make && npm run copy-debug-to-dist",
"build-wasm-release": "make-dir src/cpp/build_wasm && cd src/cpp/build_wasm && emcmake cmake .. -DEMSCRIPTEN=true -DCMAKE_BUILD_TYPE=Release && emmake make && npm run copy-to-dist",
"build-wasm-debug": "make-dir src/cpp/build_wasm_debug && cd src/cpp/build_wasm_debug && emcmake cmake .. -DEMSCRIPTEN=true -DCMAKE_BUILD_TYPE=Debug && emmake make && npm run copy-debug-to-dist",
"build-wasm-release": "make-dir src/cpp/build_wasm && cd src/cpp/build_wasm && emcmake cmake .. -DEMSCRIPTEN=true -DCMAKE_BUILD_TYPE=Release && emmake make && npm run copy-to-dist",
"build-api": "make-dir dist/helpers && npm run build-ts-api && npm run build-web-ifc-api-browser && npm run build-web-ifc-api-node && npm run build-web-ifc-api-iife &&cpy README.md dist && cpy package.json dist",
"build-ts-api": "make-dir dist/helpers && cpy \"src/ts/*.ts\" dist && cpy \"src/ts/helpers/*\" dist/helpers --flat && tsc --incremental --emitDeclarationOnly && cpy dist/web-ifc-api.d.ts . --rename=web-ifc-api-node.d.ts",
"build-web-ifc-api-node": "make-dir dist && esbuild dist/web-ifc-api.ts --define:__WASM_PATH__=\\\"./web-ifc-node\\\" --bundle --platform=node --outfile=./dist/web-ifc-api-node.js",
Expand Down
1 change: 1 addition & 0 deletions src/cpp/geometry/operations/mesh_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ namespace webifc::geometry
}

// Then we find the angular difference
if (angleVec.size() == 0) return;
for (size_t i = 0; i < angleVec.size() - 1; i++)
{
if (angleVec[i] - angleVec[i + 1] > 180)
Expand Down
Loading

0 comments on commit f3a5fa7

Please sign in to comment.