From: emv Date: Thu, 4 Jul 2013 10:23:22 +0000 (+0400) Subject: 0024033: All the orientation as a result of BRepAlgoAPI_Common is set to INTERNAL X-Git-Tag: V6_7_0_beta~220 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=093bfc493ba9506e3d2a56ddbe27ca118b5c811d;p=occt-copy.git 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 --- 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]