0029351: Boolean Operations create invalid pcurves
[occt.git] / tests / bugs / modalg_2 / bug2785_1
CommitLineData
61c421bf 1puts "============"
2puts "OCC2785"
3puts "============"
4puts ""
5######################################################
6# Cut and fuse operations for two faces that share same domain give invalid result
7######################################################
8# Cut and fuse operations for two faces that share same domain gives invalid
9# result, if one face has a hole and other face touches a boundary of this hole.
10######################################################
11## (new topology)
12## (bcut)
13## (bop)
14## (boptuc)
15## (bfuse)
16######################################################
17
18############# data #############
19pcylinder c1 2 10
20pcylinder c2 2 2
21explode c1 f
22explode c2 f
23mksurface gs c2_1
24trim trgs gs 1 2 2 4
25mkface ff trgs
26trim trgs gs 0 1 2 4
27mkface ff2 trgs
28
29bcut rcut1 c1_1 ff
30checkshape rcut1
31
32bop ff2 rcut1
33boptuc rcut2
34checkshape rcut2
35
36bfuse fuse1 rcut2 ff2
37checkshape fuse1
38
39bfuse result fuse1 ff
40
58cf74e0 41checkprops result -s 125.664
42checkshape result
5747059b 43checkview -display result -3d -path ${imagedir}/${test_image}.png