5 ######################################################
6 # BRepOffsetAPI_MakeThickSolid fails to build a result
7 ######################################################
11 puts "demonstration of pipes and hollowing for GTISoft"
13 puts "Scenario 3A: Hollowed general pipe - ThroughSection with following shell reconstruction"
15 circle c 0 100 0 1 0 0 5
18 polyline pl 10 90 -10 10 90 10 10 110 10 10 110 -10 10 90 -10
20 if { [catch { thrusections resthru 1 1 wc pl } catch_result] } {
21 puts "Faulty ${BugNumber} : thrusections is wrong"
24 # straighforward hollowing will fail due to problems in the algorithm
27 if { [catch { offsetshape result resthru -0.5 resthru_6 resthru_7 } catch_result] } {
28 puts "Faulty ${BugNumber} : offsetshape is wrong"
31 if { [catch { set tolmaxres [tolmax result] } catch_result] } {
32 puts "Faulty ${BugNumber} : tolmax is wrong"
34 regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full maxtolerance
35 if { [catch { expr $maxtolerance } catch_result] } {
36 puts "Faulty ${BugNumber} : maxtolerance is wrong (1)."
38 if { $maxtolerance > 1. } {
39 puts "Faulty ${BugNumber} : maxtolerance is wrong (2)."
51 set nb_compound_good 0