@@ -3,8 +3,8 @@ import * as Inputs from '../../api/inputs/inputs';
33import { OccHelper } from './occ-helper' ;
44import { OCCTBooleans } from './services/booleans' ;
55import { 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' ;
88import { OCCTIO } from './services/io' ;
99import { OCCTOperations } from './services/operations' ;
1010import { 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 ( ) ;
0 commit comments