mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-16 10:54:53 +03:00
0025450: Common operation returns wrong shape
Changes: class BOPAlgo_PaveFiller method: void BOPAlgo_PaveFiller::PerformEF() The index of the face has been added in post-treatment map Test cases for issue CR25450 Correction of test case for issue CR25450
This commit is contained in:
parent
93442c6f24
commit
ceb31c6156
@ -267,7 +267,6 @@ void BOPAlgo_PaveFiller::PerformEF()
|
|||||||
aPB->Indices(nV[0], nV[1]);
|
aPB->Indices(nV[0], nV[1]);
|
||||||
//
|
//
|
||||||
BOPDS_FaceInfo& aFI=myDS->ChangeFaceInfo(nF);
|
BOPDS_FaceInfo& aFI=myDS->ChangeFaceInfo(nF);
|
||||||
////const BOPDS_IndexedMapOfPaveBlock& aMPBF=aFI.PaveBlocksOn();
|
|
||||||
const BOPCol_MapOfInteger& aMIFOn=aFI.VerticesOn();
|
const BOPCol_MapOfInteger& aMIFOn=aFI.VerticesOn();
|
||||||
const BOPCol_MapOfInteger& aMIFIn=aFI.VerticesIn();
|
const BOPCol_MapOfInteger& aMIFIn=aFI.VerticesIn();
|
||||||
//~~~
|
//~~~
|
||||||
@ -305,7 +304,9 @@ void BOPAlgo_PaveFiller::PerformEF()
|
|||||||
aEF.SetIndices(nE, nF);
|
aEF.SetIndices(nE, nF);
|
||||||
aEF.SetCommonPart(aCP);
|
aEF.SetCommonPart(aCP);
|
||||||
myDS->AddInterf(nE, nF);
|
myDS->AddInterf(nE, nF);
|
||||||
// 3
|
//
|
||||||
|
aMIEFC.Add(nF);
|
||||||
|
//
|
||||||
BOPAlgo_Tools::FillMap(aPB, nF, aMPBLI, aAllocator);
|
BOPAlgo_Tools::FillMap(aPB, nF, aMPBLI, aAllocator);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -15,5 +15,5 @@ checkshape a_2
|
|||||||
|
|
||||||
bcut result a_1 a_2
|
bcut result a_1 a_2
|
||||||
|
|
||||||
set square 1773.6
|
set square 2471.48
|
||||||
set 2dviewer 0
|
set 2dviewer 0
|
||||||
|
26
tests/bugs/modalg_5/bug25450_1
Normal file
26
tests/bugs/modalg_5/bug25450_1
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
puts "================"
|
||||||
|
puts "OCC25450"
|
||||||
|
puts "================"
|
||||||
|
puts ""
|
||||||
|
####################################
|
||||||
|
# Common operation returns wrong shape
|
||||||
|
####################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug25450_Shape.brep] a
|
||||||
|
|
||||||
|
explode a
|
||||||
|
bcommon result a_1 a_2
|
||||||
|
|
||||||
|
set square 142153
|
||||||
|
|
||||||
|
set nb_v_good 8
|
||||||
|
set nb_e_good 12
|
||||||
|
set nb_w_good 4
|
||||||
|
set nb_f_good 4
|
||||||
|
set nb_sh_good 1
|
||||||
|
set nb_sol_good 0
|
||||||
|
set nb_compsol_good 0
|
||||||
|
set nb_compound_good 1
|
||||||
|
set nb_shape_good 30
|
||||||
|
|
||||||
|
set 3dviewer 1
|
27
tests/bugs/modalg_5/bug25450_2
Normal file
27
tests/bugs/modalg_5/bug25450_2
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
puts "================"
|
||||||
|
puts "OCC25450"
|
||||||
|
puts "================"
|
||||||
|
puts ""
|
||||||
|
####################################
|
||||||
|
# Common operation returns wrong shape
|
||||||
|
####################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug25450_b1.brep] b1
|
||||||
|
restore [locate_data_file bug25450_b2.brep] b2
|
||||||
|
|
||||||
|
bop b1 b2
|
||||||
|
bopcommon result
|
||||||
|
|
||||||
|
set square 35538.3
|
||||||
|
|
||||||
|
set nb_v_good 4
|
||||||
|
set nb_e_good 4
|
||||||
|
set nb_w_good 1
|
||||||
|
set nb_f_good 1
|
||||||
|
set nb_sh_good 1
|
||||||
|
set nb_sol_good 0
|
||||||
|
set nb_compsol_good 0
|
||||||
|
set nb_compound_good 1
|
||||||
|
set nb_shape_good 12
|
||||||
|
|
||||||
|
set 3dviewer 1
|
Loading…
x
Reference in New Issue
Block a user