puts "========" puts "OCC29858" puts "========" puts "" ################################################# # Regression in GeomAPI_ExtremaCurveCurve ################################################# # Read input restore [locate_data_file bug29858_03_e1.brep] e1 restore [locate_data_file bug29858_03_e2.brep] e2 # Extract geometry from topology mkcurve c1 e1 mkcurve c2 e2 # Run extrema set info [extrema c1 c2] # Check result regexp {Extrema 1 is point : +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+)} $info full x y z # Point check set good_x 0.0 set good_y 0.070710562195021642 set good_z -0.65305318986891325 checkreal "Intersection point x:" ${x} ${good_x} 0.01 0.01 checkreal "Intersection point y:" ${y} ${good_y} 0.01 0.01 checkreal "Intersection point z:" ${z} ${good_z} 0.01 0.01