0025124: [Feature request] Removal of continuity checks for offset geometries
[occt.git] / tests / bugs / modalg_5 / bug23402
CommitLineData
244587f4 1puts "============"
2puts "OCC23402"
3puts "============"
4puts ""
5##################################################
6# Issue in BRepAlgoAPI_Common - SOLID and FACE
7##################################################
8
9polyline l 0 0 0 0 5 0 0 5 5 0 3 5 0 3 3 0 2 3 0 2 5 0 0 5 0 0 0
10mkplane sf l
11prism s sf 5 0 0
12polyline w1 -2 2.5 2 7 2.5 2 7 7 2 -2 7 2 -2 2.5 2
13mkplane f1 w1
14bop s f1
15bopcommon c1
16ttranslate c1 0 0 5
17polyline w2 -2 2.5 3 7 2.5 3 7 7 3 -2 7 3 -2 2.5 3
18mkplane f2 w2
19bop s f2
20bopcommon c2
21ttranslate c2 0 0 5
22polyline w3 -2 2.5 4 7 2.5 4 7 7 4 -2 7 4 -2 2.5 4
23mkplane f3 w3
24bop s f3
25bopcommon c3
26ttranslate c3 0 0 5
27
28regexp {Mass +: +([-0-9.+eE]+)} [sprops c1] full sq1
29regexp {Mass +: +([-0-9.+eE]+)} [sprops c2] full sq2
30regexp {Mass +: +([-0-9.+eE]+)} [sprops c3] full sq3
31
32if { $sq1 != 12.5 || $sq2 != 12.5 || $sq3 != 10 } {
33 puts "Error : c1 and c2 should be indeticall"
34} else {
35 puts "OK : c1 and c2 are identicall"
36}
37
38mu4
39fit
40
41set 2dviewer 1