mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
0030786: BOP Cut: artifacts with enabled nondestructive flag
Avoid PaveBlocks initialization on vertex update. Test case for the issue.
This commit is contained in:
parent
2547d97917
commit
7f7d121f90
@ -152,8 +152,6 @@ Standard_Integer BOPAlgo_PaveFiller::UpdateVertex
|
|||||||
//
|
//
|
||||||
// add vertex to SD map
|
// add vertex to SD map
|
||||||
myDS->AddShapeSD(nV, nVNew);
|
myDS->AddShapeSD(nV, nVNew);
|
||||||
//
|
|
||||||
myDS->InitPaveBlocksForVertex(nV);
|
|
||||||
|
|
||||||
// Add new vertex to map of vertices to avoid further extension
|
// Add new vertex to map of vertices to avoid further extension
|
||||||
myVertsToAvoidExtension.Add(nVNew);
|
myVertsToAvoidExtension.Add(nVNew);
|
||||||
|
@ -3250,6 +3250,7 @@ void BOPAlgo_PaveFiller::UpdateBlocksWithSharedVertices()
|
|||||||
aTolV=BRep_Tool::Tolerance(aV);
|
aTolV=BRep_Tool::Tolerance(aV);
|
||||||
//
|
//
|
||||||
UpdateVertex(nV, aTolV);
|
UpdateVertex(nV, aTolV);
|
||||||
|
myDS->InitPaveBlocksForVertex (nV);
|
||||||
}
|
}
|
||||||
}//for (j=0; j<aNbC; ++j) {
|
}//for (j=0; j<aNbC; ++j) {
|
||||||
}//for (i=0; i<aNbFF; ++i) {
|
}//for (i=0; i<aNbFF; ++i) {
|
||||||
|
31
tests/bugs/modalg_7/bug30786
Normal file
31
tests/bugs/modalg_7/bug30786
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
puts "========"
|
||||||
|
puts "0030786: BOP Cut: artifacts with enabled nondestructive flag"
|
||||||
|
puts "========"
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
restore [locate_data_file bug30786_Corner_Shapes.brep] s
|
||||||
|
explode s
|
||||||
|
|
||||||
|
bnondestructive 1
|
||||||
|
bclearobjects
|
||||||
|
bcleartools
|
||||||
|
baddobjects s_1
|
||||||
|
baddtools s_2 s_3 s_4
|
||||||
|
bfillds
|
||||||
|
bbop result 2
|
||||||
|
|
||||||
|
bnondestructive 0
|
||||||
|
bclearobjects
|
||||||
|
bcleartools
|
||||||
|
baddobjects s_1
|
||||||
|
baddtools s_2 s_3 s_4
|
||||||
|
bfillds
|
||||||
|
bbop result1 2
|
||||||
|
|
||||||
|
foreach r {result result1} {
|
||||||
|
checkshape $r
|
||||||
|
checknbshapes $r -wire 32 -face 32 -shell 2 -solid 2
|
||||||
|
checkprops $r -s 277739 -v 543086
|
||||||
|
}
|
||||||
|
|
||||||
|
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
Loading…
x
Reference in New Issue
Block a user