0027322: geom/revolution_00/A1: Incorrect pcurve creation
[occt.git] / tests / bugs / modalg_5 / bug24738
CommitLineData
9ba2c30f 1puts "============"
2puts "OCC24738"
3puts "============"
4puts ""
5#######################################################################
6# BRepOffsetAPI_MakePipe algorithm fails on circular path and section (the case where result is part of sphere)
7#######################################################################
8
9restore [locate_data_file bug24738_path.brep] sp
10restore [locate_data_file bug24738_profile.brep] pr
11
12pipe result sp pr
13
a4eba920 14checknbshapes result -vertex 2 -edge 3 -wire 1 -face 1 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 8
9ba2c30f 15set info [sprops result]
16
17set string {Center +of +gravity +:[\t\n]*[\s\t]*X +=[\s\t]*([-0-9.+eE]+)[\t\n]*Y +=[\s\t]*([-0-9.+eE]+)[\t\n]*Z +=[\s\t]*([-0-9.+eE]+)[\t\n]*}
18
19regexp ${string} ${info} full X Y Z
20
21puts "X=${X}"
22puts "Y=${Y}"
23puts "Z=${Z}"
24
25set good_Z 94.9994
26
27checkreal "Z" ${Z} ${good_Z} 0.1 0.1
28
5747059b 29checkview -display result -2d -path ${imagedir}/${test_image}.png