5 ###############################################################
6 ## SplitShape algorithm modifies original shape (increases vertex tolerance of a plitting edge).
7 ###############################################################
9 restore [locate_data_file BUC60942_splitshape.brep] c
17 set tol1 [maxtolerance w]
18 regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol1 full MaxEdgeTol1
19 regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol1 full MaxVertexTol1
21 splitshape result f f w
23 set tol2 [maxtolerance w]
24 regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol2 full MaxEdgeTol2
25 regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol2 full MaxVertexTol2
28 if { $MaxEdgeTol1 < $MaxEdgeTol2 || $MaxVertexTol1 < $MaxVertexTol1 } {
29 puts "Faulty BUC60942: max tolerance of the input wire has been increased by about 10 times."
31 puts "BUC60942 OK: Tolerance of shape is correct"