mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0014531: Boolean Operation Algorithm fails
Adding test case
This commit is contained in:
parent
84bd25527c
commit
b357dcc225
41
tests/bugs/modalg_6/bug14531
Normal file
41
tests/bugs/modalg_6/bug14531
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "OCC14531"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
######################################################
|
||||||
|
# Boolean Operation Algorithm fails
|
||||||
|
######################################################
|
||||||
|
|
||||||
|
pcylinder c 10 20
|
||||||
|
pcone x 20 0 20
|
||||||
|
trotate x 0 0 20 0 1 0 45
|
||||||
|
ttranslate x 5 0 0
|
||||||
|
ttranslate x 0 0 1
|
||||||
|
ttranslate c -5 0 0
|
||||||
|
explode c f
|
||||||
|
explode x f
|
||||||
|
copy c_1 a1
|
||||||
|
copy x_1 a2
|
||||||
|
fit
|
||||||
|
bop a1 a2
|
||||||
|
bopfuse result
|
||||||
|
|
||||||
|
checkshape result
|
||||||
|
|
||||||
|
checkprops result -s 3033.79
|
||||||
|
|
||||||
|
set nbshapes_expected "
|
||||||
|
Number of shapes in result
|
||||||
|
VERTEX : 7
|
||||||
|
EDGE : 12
|
||||||
|
WIRE : 5
|
||||||
|
FACE : 4
|
||||||
|
SHELL : 0
|
||||||
|
SOLID : 0
|
||||||
|
COMPSOLID : 0
|
||||||
|
COMPOUND : 1
|
||||||
|
SHAPE : 29
|
||||||
|
"
|
||||||
|
checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by Boolean cut operation"
|
||||||
|
|
||||||
|
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
Loading…
x
Reference in New Issue
Block a user