2 puts "0030645: Modeling Algorithms - B-spline segmentation produces wrong parametrization"
6 restore [locate_data_file bug30645.brep] result
9 segsur result 13.527990713022374 14.030423915738853 54.831990159753303 59.000000000000028 $tolerance
11 set surf [dump result]
13 regexp {VKnots +:\n(.*)} $surf full vknots
14 set is_different_knots 1
16 while { "$vknots" != "\n\n" && $is_different_knots } {
17 regexp { +([0-9]+) +: +([-0-9.+eE]+) *([0-9]+)\n(.*)} $vknots full index knot weight rest
18 foreach k $vknots_list {
19 if { [expr abs($k - $knot)] < $tolerance } {
20 set is_different_knots 0
24 lappend vknots_list $knot
28 if { $is_different_knots } {
29 puts "OK: all knots are different"
31 puts "ERROR: segment has knots too close"