5 ################################################
6 # BREPExtrma DistShapeShape gives wrong result for Sphere and Line
7 ################################################
13 set extrema_res [extrema l s]
14 set extrema_length [llength ${extrema_res} ]
17 if {${extrema_length} != 10 } {
18 puts "Error: Invalid extrema number in extrema output"
20 regexp {Extrema 1 is point : +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+)} $extrema_res full x y z
23 set good_x 3.5327043465311383
24 set good_y 3.5327043465311383
26 checkreal "Intersection point x:" ${x} ${good_x} 0.01 0.01
27 checkreal "Intersection point y:" ${y} ${good_y} 0.01 0.01
28 checkreal "Intersection point z:" ${z} ${good_z} 0.01 0.01