1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-13 14:27:08 +03:00

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
This commit is contained in:
emv
2013-07-04 14:23:22 +04:00
parent b20eeb13fe
commit 093bfc493b
2 changed files with 65 additions and 1 deletions

View File

@@ -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]<myDims[1]) ? 0 : 1;
}
iY=(iX+1)%2;
}
else if (myOperation==BOPAlgo_CUT) {