From: ddzama Date: Mon, 29 Aug 2022 14:27:16 +0000 (+0300) Subject: 0032960: Wrong result of BRepExtrema_DistShapeShape after translation. X-Git-Tag: V7_7_0_beta~11 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=d6baf70a93a9adaa249cc7f7d2111a3bbb65e03a;p=occt.git 0032960: Wrong result of BRepExtrema_DistShapeShape after translation. Add corresponding test. --- diff --git a/tests/bugs/fclasses/bug32960 b/tests/bugs/fclasses/bug32960 new file mode 100644 index 0000000000..380c6546a4 --- /dev/null +++ b/tests/bugs/fclasses/bug32960 @@ -0,0 +1,16 @@ +puts "========" +puts "OCC32960: Wrong result of BRepExtrema_DistShapeShape after translation" +puts "========" +# Correct distance is 1.0 + +restore [locate_data_file bug32960.brep] aShape +explode aShape +set anInfo [distmini d aShape_1 aShape_2] + +# Check extrema distance +set absTol 1.0e-7 +set relTol 1.0e-7 +set aDist_Exp 1.0 +set aDist [dval d_val] +checkreal "Distance value check" $aDist $aDist_Exp $absTol $relTol +