Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

Fix default tool frame for placement-free boolean execution

Yuechen Lia1bd0c913c08
diff --git a/Aetheris.Kernel.Firmament/Execution/FirmamentPrimitiveExecutor.cs b/Aetheris.Kernel.Firmament/Execution/FirmamentPrimitiveExecutor.cs
index 0ff822a6..c608ad1f 100644
--- a/Aetheris.Kernel.Firmament/Execution/FirmamentPrimitiveExecutor.cs
+++ b/Aetheris.Kernel.Firmament/Execution/FirmamentPrimitiveExecutor.cs
@@ -239,8 +239,9 @@ internal static class FirmamentPrimitiveExecutor
}
else
{
- toolBodyUsedForBoolean = toolResult.Value;
- booleanResult = ExecuteBoolean(boolean.Kind, baseBody, toolResult.Value);
+ var frameAdjustedToolBody = ApplyDefaultToolLocalFrame(boolean.Tool, toolResult.Value);
+ toolBodyUsedForBoolean = frameAdjustedToolBody;
+ booleanResult = ExecuteBoolean(boolean.Kind, baseBody, frameAdjustedToolBody);
}
if (!booleanResult.IsSuccess)