mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0028195: Boolean common returns empty result for a solid where some surfaces of revolution touch the axis
Problem is not reproduced on current master. Issue must be closed on 7.2.0. Test case was added only
This commit is contained in:
parent
bb88f3ff6e
commit
3dffe5f265
28
tests/bugs/modalg_7/bug28195_1
Normal file
28
tests/bugs/modalg_7/bug28195_1
Normal file
@ -0,0 +1,28 @@
|
||||
puts "========"
|
||||
puts "OCC28195"
|
||||
puts "========"
|
||||
puts ""
|
||||
##################################################################################################
|
||||
# Boolean common returns empty result for a solid where some surfaces of revolution touch the axis
|
||||
##################################################################################################
|
||||
|
||||
restore [locate_data_file bug28195_solidsOK.brep] s
|
||||
|
||||
whatis s
|
||||
|
||||
explode s
|
||||
checkshape s
|
||||
bopcheck s_1
|
||||
bopcheck s_2
|
||||
|
||||
bopargcheck s_1 s_2 -O #F
|
||||
bop s_1 s_2
|
||||
bopcommon r
|
||||
|
||||
whatis r
|
||||
explode r
|
||||
checkshape r_1
|
||||
nbshapes r_1
|
||||
|
||||
checkview -display r_1 -2d -path ${imagedir}/${test_image}-2d.png
|
||||
checkview -display r_1 -3d -path ${imagedir}/${test_image}-3d.png
|
28
tests/bugs/modalg_7/bug28195_2
Normal file
28
tests/bugs/modalg_7/bug28195_2
Normal file
@ -0,0 +1,28 @@
|
||||
puts "========"
|
||||
puts "OCC28195"
|
||||
puts "========"
|
||||
puts ""
|
||||
##################################################################################################
|
||||
# Boolean common returns empty result for a solid where some surfaces of revolution touch the axis
|
||||
##################################################################################################
|
||||
|
||||
restore [locate_data_file bug28195_solidsKO.brep] s
|
||||
|
||||
whatis s
|
||||
|
||||
explode s
|
||||
checkshape s
|
||||
bopcheck s_1
|
||||
bopcheck s_2
|
||||
|
||||
bopargcheck s_1 s_2 -O #F
|
||||
bop s_1 s_2
|
||||
bopcommon r
|
||||
|
||||
whatis r
|
||||
explode r
|
||||
checkshape r_1
|
||||
nbshapes r_1
|
||||
|
||||
checkview -display r_1 -2d -path ${imagedir}/${test_image}-2d.png
|
||||
checkview -display r_1 -3d -path ${imagedir}/${test_image}-3d.png
|
Loading…
x
Reference in New Issue
Block a user