Skip to content

Commit afcf5fd

Browse files
committed
🐞 fix: remove unnecessary boolean operator settings to prevent crashes
1 parent 66c0cbc commit afcf5fd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

cpp/src/factory.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,16 +435,14 @@ class ShapeFactory {
435435
TopTools_ListOfShape argsList = shapeArrayToListOfShape(args);
436436
TopTools_ListOfShape toolsList = shapeArrayToListOfShape(tools);
437437

438-
boolOperater.SetRunParallel(false);
439-
boolOperater.SetFuzzyValue(1e-3);
440438
boolOperater.SetToFillHistory(false);
441439
boolOperater.SetArguments(argsList);
442440
boolOperater.SetTools(toolsList);
443441
boolOperater.Build();
444442
if (!boolOperater.IsDone()) {
445443
return ShapeResult { TopoDS_Shape(), false, "Failed to build boolean operation" };
446444
}
447-
// boolOperater.SimplifyResult(true, true, 1e-4); // mabe crash
445+
boolOperater.SimplifyResult();
448446

449447
return ShapeResult { boolOperater.Shape(), true, "" };
450448
}
-38 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)