0027341: Incorrect exact HLR results
[occt.git] / tests / bugs / modalg_6 / bug21670
CommitLineData
d0fdf989 1puts "========"
2puts "OCC21670"
3puts "========"
4puts ""
5###################################
6# BOP section produces bad result
7###################################
8
9smallview
10
11restore [locate_data_file bug21633_SECC19_1_IZQ.brep] a
12
13explode a f
14mksurface s a_1
15mkface f s
16
17restore [locate_data_file bug21670-bug_prj_wire.brep] w
18
19explode w
20prism p w_1 0 0 -1
21
22donly f p
23fit
24
25puts "Checking f: [bopcheck f] [checkshape f] [tolerance f]"
26puts "Checking p: [bopcheck p] [checkshape p] [tolerance p]"
27
28bsection result f p
29
30set bug_info [explode result]
31if {[llength $bug_info] != 1} {
32 puts "ERROR: OCC21670 is reproduced. Result of bsection command is set of shapes."
33}
34
5747059b 35checkview -screenshot -2d -path ${imagedir}/${test_image}.png