0030760: Modeling Algorithms - Intersection fails in Occt 7.3.0
[occt.git] / tests / bugs / modalg_7 / bug25542
CommitLineData
3306fdd9 1puts "============"
2puts "OCC25542: Boolean operation fai-lure for Cylinder and Cone in critical location."
3puts "============"
4puts ""
5
6restore [locate_data_file bug25542_cylinder.brep] b1
7restore [locate_data_file bug25542_cone.brep] b2
8
9smallview
10
11bop b1 b2
12
13puts ""
14puts "FUSE"
15
16bopfuse rfu
17donly rfu
18fit
19xwd ${imagedir}/${casename}_rfu.png
20
21puts ""
22puts "COMMON"
23
24bopcommon rco
25donly rco
26fit
27xwd ${imagedir}/${casename}_rco.png
28
29puts ""
30puts "CUT"
31
32bopcut rcu
33donly rcu
34fit
35xwd ${imagedir}/${casename}_rcu.png
36
37puts ""
38puts "TUC"
39
40boptuc rtu
41donly rtu
42fit
43xwd ${imagedir}/${casename}_rtu.png
44
45
46set exp_nbshapes_rfu "
47Number of shapes in shape
48 VERTEX : 6
49 EDGE : 14
50 WIRE : 8
51 FACE : 8
52 SHELL : 1
53 SOLID : 1
54 COMPSOLID : 0
55 COMPOUND : 1
56 SHAPE : 39
57"
58
59set exp_nbshapes_rco "
60Number of shapes in shape
61 VERTEX : 3
62 EDGE : 5
63 WIRE : 3
64 FACE : 3
65 SHELL : 1
66 SOLID : 1
67 COMPSOLID : 0
68 COMPOUND : 1
69 SHAPE : 17
70"
71
72set exp_nbshapes_rcu "
73Number of shapes in shape
74 VERTEX : 5
75 EDGE : 9
76 WIRE : 5
77 FACE : 5
78 SHELL : 1
79 SOLID : 1
80 COMPSOLID : 0
81 COMPOUND : 1
82 SHAPE : 27
83"
84
85set exp_nbshapes_rtu "
86Number of shapes in shape
87 VERTEX : 4
88 EDGE : 8
89 WIRE : 4
90 FACE : 4
91 SHELL : 1
92 SOLID : 1
93 COMPSOLID : 0
94 COMPOUND : 1
95 SHAPE : 23
96"
97
98checknbshapes rfu -ref ${exp_nbshapes_rfu} -t -m "FUSE"
99checknbshapes rco -ref ${exp_nbshapes_rco} -t -m "COMMON"
100checknbshapes rcu -ref ${exp_nbshapes_rcu} -t -m "CUT"
101checknbshapes rtu -ref ${exp_nbshapes_rtu} -t -m "TUC"
102
103checkshape rfu
104checkshape rco
105checkshape rcu
106checkshape rtu
107
108checkprops rfu -s 59099.9
109checkprops rco -s 6951.3
110checkprops rcu -s 57145.3
111checkprops rtu -s 7759.96