5 ######################################################
6 # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7 ######################################################
11 puts "demonstration of pipes and hollowing for GTISoft"
13 puts "Scenario 2A: Hollowed elliptical cylinder - ThroughSection and MakeThickSolid (work-around: ellipse is split into 2)"
16 ellipse e 10 60 0 1 0 0 5 3
25 if { [catch { thrusections rthru2 1 1 w1 w2 } catch_result] } {
26 puts "Faulty ${BugNumber} : thrusections is wrong"
31 if { [catch { offsetshape result rthru2 -0.5 rthru2_3 rthru2_4 } catch_result] } {
32 puts "Faulty ${BugNumber} : offsetshape is wrong"
35 if { [catch { set tolmaxres [tolmax result] } catch_result] } {
36 puts "Faulty ${BugNumber} : tolmax is wrong"
39 regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full maxtolerance
40 if { [catch { expr $maxtolerance } res] } {
41 puts "Faulty ${BugNumber} : maxtolerance is wrong (1)."
43 if { $maxtolerance > 1. } {
44 puts "Faulty ${BugNumber} : maxtolerance is wrong (2)."
56 set nb_compound_good 0