0026132: Invalid result of boolean operation
[occt.git] / tests / bugs / modalg_1 / bug108
CommitLineData
0e94a94e 1
2puts "================"
3puts "BUC61037"
4puts "OCC108"
5puts "================"
6puts ""
7#####################################################################
8## BRepTools::AddUVBounds for the planar face bounded by a circle returns too small bounding box.
9#####################################################################
10
11restore [locate_data_file bug61037.brep] sh1
352ffd73 12checkshape sh1
0e94a94e 13
14set rr [bounding sh1]
15regexp { *([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+)} $rr full v1_x v1_y v1_z v2_x v2_y v2_z
16vertex v1 $v1_x $v1_y $v1_z
17vertex v2 $v2_x $v2_y $v2_z
18edge result v1 v2
19regexp {Mass +: +([-0-9.+eE]+)} [lprops result] full dis
20if { [expr $dis < 0.201357] } {
21 puts "Faulty BUC61037: Planar circle and bounded face a returns too small bounding box"
22} else {
23 puts "OCC134 OK: bounding box is correct"
24}
25
58cf74e0 26checkprops result -l 0.201357
27checkshape result
28checksection result
0e94a94e 29set 2dviewer 0
30