MCPcopy Create free account
hub / github.com/OpenWebCAD/node-occ / export_debug_step

Function export_debug_step

lib/shape.js:9–20  ·  view source on GitHub ↗
(solid)

Source from the content-addressed store, hash-verified

7}
8
9function export_debug_step(solid) {
10
11 let debug_step_file = "debug_step";
12 let counter= 0;
13 while (fs.existsSync(debug_step_file + counter.toString() + ".step")) {
14 counter ++;
15 }
16 debug_step_file = debug_step_file + counter.toString() + ".step";
17
18 debugLog("The solid causing problem has been saved in ", debug_step_file);
19 occ.writeSTEP(debug_step_file, solid);
20}
21exports.init= function() {
22
23

Callers 1

makeEdgesIndexesFunction · 0.85

Calls 1

debugLogFunction · 0.70

Tested by

no test coverage detected