]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0020677: EDF 1219 GEOM: MinDistance gives 0 instead of value
authordmv <dmv@opencascade.com>
Fri, 8 Oct 2010 07:33:29 +0000 (07:33 +0000)
committerdmv <dmv@opencascade.com>
Fri, 8 Oct 2010 07:33:29 +0000 (07:33 +0000)
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx

index c62f4ac26d172c6401bc690ed89bd25844db4d56..d0ac43e7cd89e8b5f78151ae3c2bde92a23e3ae5 100644 (file)
@@ -1479,7 +1479,8 @@ 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);
+        //S->Bounds(U1,U2,V1,V2);
+        ShapeAnalysis::GetFaceUVBounds(TopoDS::Face(tmpSh2),U1,U2,V1,V2);
         Handle(Geom_RectangularTrimmedSurface) TrS1 = 
           new Geom_RectangularTrimmedSurface(S,U1,(U1+U2)/2.,V1,V2);
         Handle(Geom_RectangularTrimmedSurface) TrS2 =