0031492: BRepBuilderAPI_MakeFace crashes on a wire
[occt.git] / tests / bugs / modalg_7 / bug29807_b3b
CommitLineData
3306fdd9 1puts "========"
2puts "0029807: Impossible to cut cone from prism"
3puts "========"
4puts ""
5
6restore [locate_data_file bug29807-obj.brep] b1
7restore [locate_data_file bug29807-tool.brep] b2
8
9trotate b2 +23.85857157145715500000 +12.00000000000000000000 +5.50000000000000000000 7 -7.14142842854285 0 -5
10removeloc b2 b2
11
12explode b2 v
13settolerance b2_2 1.0e-7
14
15checkshape b2
16
17bclearobjects
18bcleartools
19baddobjects b1
20baddtools b2
21bfillds
22
23# CUT operation
24bbop result 2
25
26savehistory ResHist
27
28checkshape result
29checkprops result -v 9465.07 -s 4012.74
30checknbshapes result -face 9 -wire 9
31
32if {[regexp "Faulties" [bopargcheck result]]} {
33 puts "Error: bopargcheck has found some faulties in result"
34}
35
36explode b2 f
37modified reshm ResHist b2_2
38
39checknbshapes reshm -face 2
40
41foreach a [explode reshm f] {
42 # Every modified face must contain degenerated edge
43
44 if { ![regexp {degenerated} [dump $a] ] } {
45 puts "Error: Degenerated edge is not found"
46 }
47}
48
49vdisplay result
50vsetdispmode 1
51vviewparams -scale 52.4803 -proj 0.285421 0.0158136 0.958272 -up -0.810772 0.537155 0.232624 -at 29.6172 13.0268 3.82234 -eye 47.7439 14.0311 64.6808
52
53if { [regexp {no triangulation} [tricheck result] ] } {
54 puts "Error: Result contains not triangulated face"
55}
56
57checkview -screenshot -3d -path ${imagedir}/${test_image}.png