]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0020677: EDF 1219 GEOM: MinDistance gives 0 instead of 20.88
authordmv <dmv@opencascade.com>
Mon, 1 Feb 2010 10:26:17 +0000 (10:26 +0000)
committerdmv <dmv@opencascade.com>
Mon, 1 Feb 2010 10:26:17 +0000 (10:26 +0000)
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx

index da56dd070b32744b17f90578a7b6f0385fc9e3c3..cbb229be647105ca3c4b4985cabbc9df740170a7 100644 (file)
@@ -1344,7 +1344,10 @@ static double CheckSingularCase(const TopoDS_Shape& aSh1,
       if( sh.ShapeType()==TopAbs_SHELL || sh.ShapeType()==TopAbs_FACE ) {
         // non solid case
         double U1,U2,V1,V2;
-        S->Bounds(U1,U2,V1,V2);
+        // changes for 0020677: EDF 1219 GEOM: MinDistance gives 0 instead of 20.88
+        //S->Bounds(U1,U2,V1,V2); changed by
+        ShapeAnalysis::GetFaceUVBounds(TopoDS::Face(tmpSh1),U1,U2,V1,V2);
+        // end of changes for 020677 (dmv)
         Handle(Geom_RectangularTrimmedSurface) TrS1 = 
           new Geom_RectangularTrimmedSurface(S,U1,(U1+U2)/2.,V1,V2);
         Handle(Geom_RectangularTrimmedSurface) TrS2 =