Skip to content

Commit 402cb4f

Browse files
fixed the build by ignoring advanced dependencies
1 parent 2a37035 commit 402cb4f

File tree

2 files changed

+11
-34
lines changed

2 files changed

+11
-34
lines changed

src/lib/workers/occ/occ-service.ts

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import * as Inputs from '../../api/inputs/inputs';
33
import { OccHelper } from './occ-helper';
44
import { OCCTBooleans } from './services/booleans';
55
import { OCCTGeom } from './services/geom/geom';
6-
import { OCCTAdvanced } from './services/advanced/advanced';
7-
// import { OCCTAdvanced } from './services/advanced-mock/advanced';
6+
// import { OCCTAdvanced } from './services/advanced/advanced';
7+
import { OCCTAdvanced } from './services/advanced-mock/advanced';
88
import { OCCTIO } from './services/io';
99
import { OCCTOperations } from './services/operations';
1010
import { OCCTShapes } from './services/shapes/shapes';
@@ -152,36 +152,6 @@ export class Occ {
152152
thisFace.number_of_triangles = validFaceTriCount;
153153
faceList.push(thisFace);
154154

155-
// this.forEachEdge(myFace, (index, myEdge) => {
156-
// const edgeHash = myEdge.HashCode(100000000);
157-
// if (fullShapeEdgeHashes2.hasOwnProperty(edgeHash)) {
158-
// const thisEdge = {
159-
// vertex_coord: [],
160-
// edge_index: -1
161-
// };
162-
163-
// const myP = this.occ.BRep_Tool.PolygonOnTriangulation_1(myEdge, myT, aLocation);
164-
// const edgeNodes = myP.get().Nodes();
165-
166-
// // write vertex buffer
167-
// thisEdge.vertex_coord = [];
168-
// for (let j = 0; j < edgeNodes.Length(); j++) {
169-
// const vertexIndex = edgeNodes.Value(j + 1);
170-
// thisEdge.vertex_coord.push([
171-
// thisFace.vertex_coord[((vertexIndex - 1) * 3) + 0],
172-
// thisFace.vertex_coord[((vertexIndex - 1) * 3) + 1],
173-
// thisFace.vertex_coord[((vertexIndex - 1) * 3) + 2]
174-
// ]);
175-
// }
176-
177-
// console.log('haha ', index);
178-
// thisEdge.edge_index = index;
179-
180-
// edgeList.push(thisEdge);
181-
// } else {
182-
// fullShapeEdgeHashes2[edgeHash] = edgeHash;
183-
// }
184-
// });
185155
triangulations.push(myT);
186156

187157
aLocation.delete();

src/tsconfig.bitbybit.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/* To learn more about this file see: https://angular.io/config/tsconfig. */
22
{
33
"compileOnSave": false,
4+
"exclude": [
5+
"lib/workers/occ/services/advanced/**/*",
6+
],
47
"compilerOptions": {
58
"outDir": "./dist/bitbybit-core",
69
"baseUrl": "./",
@@ -15,8 +18,12 @@
1518
"allowJs": true,
1619
"emitDeclarationOnly": false,
1720
"paths": {
18-
"projects/bitbybit-core/src/*": ["./*"],
19-
"projects/bitbybit-advanced/*": ["../../bitbybit-advanced/*"]
21+
"projects/bitbybit-core/src/*": [
22+
"./*"
23+
],
24+
"projects/bitbybit-advanced/*": [
25+
"../../bitbybit-advanced/*"
26+
]
2027
},
2128
"lib": [
2229
"es2020",

0 commit comments

Comments
 (0)