5 #################################################
6 # Function ProjectOnSegments of ShapeAnalysis_Curve
7 # returns only single solution leading to projection
8 # result far from optimal
9 #################################################
11 restore [locate_data_file bug28346.brep] f
14 regexp {Dist: ([-0-9.+eE]+)} [projpcurve f_4 f 0.5 169.29762271743246 -75.660813304433930 1040.0634215916459] full dd
15 if { abs($dd - 0.1685) > 0.0001 } { puts "Error : Projection is incorrect" }