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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user