From 093bfc493ba9506e3d2a56ddbe27ca118b5c811d Mon Sep 17 00:00:00 2001 From: emv Date: Thu, 4 Jul 2013 14:23:22 +0400 Subject: [PATCH] 0024033: All the orientation as a result of BRepAlgoAPI_Common is set to INTERNAL Dimension of the shapes is used in the condition of choosing the shape to take parts of it in the common. Adding test case for this fix --- src/BOPAlgo/BOPAlgo_BOP.cxx | 6 +++- tests/bugs/modalg_5/bug24033 | 60 ++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100755 tests/bugs/modalg_5/bug24033 diff --git a/src/BOPAlgo/BOPAlgo_BOP.cxx b/src/BOPAlgo/BOPAlgo_BOP.cxx index 0ce082969e..3def311de5 100644 --- a/src/BOPAlgo/BOPAlgo_BOP.cxx +++ b/src/BOPAlgo/BOPAlgo_BOP.cxx @@ -553,7 +553,11 @@ static // // 3. Find common parts if (myOperation==BOPAlgo_COMMON) { - iX=(aNb[0]>aNb[1])? 1 : 0; + if (myDims[0]==myDims[1]) { + iX=(aNb[0]>aNb[1])? 1 : 0; + } else { + iX=(myDims[0]