0031047: Modeling Algorithms - BRepExtrema_DistShapeShape gives wrong result
[occt.git] / tests / bugs / modalg_6 / bug28795
CommitLineData
b7a71e36 1puts "======="
2puts "OCC28795"
3puts "======="
4puts ""
5##################################################
6# Boolean operations corrupt the p-curve of the source planar face if "non-destructive" option is switched off
7##################################################
8
9set expected [list {UMin 0.0} {UMax 1.0} {VMin -2e+100} {VMax 0.0}]
10
11box mb -0.5 -0.5 -0.5 1 1 1
12explode mb F
13prism pryz mb_1 1 0 0 SemiInf
14box ab 0 -1 -1 2 2 2
15
16explode ab f
17explode pryz f
18
19set bounds [xbounds pryz_1]
20# check for expected result
21for {set i 0} {$i < 4} {incr i} {
22 checkreal "[lindex $expected $i 0]" [lindex $bounds $i] [lindex $expected $i 1] 0.0 1.0e-7
23}
24
25# Make a simple Boolean operation, e.g. "bsection"
26bsection rs ab_2 pryz_1
27
28set bounds [xbounds pryz_1]
29# check for expected result
30for {set i 0} {$i < 4} {incr i} {
31 checkreal "[lindex $expected $i 0]" [lindex $bounds $i] [lindex $expected $i 1] 0.0 1.0e-7
32}