From: dmv Date: Mon, 1 Feb 2010 10:26:17 +0000 (+0000) Subject: 0020677: EDF 1219 GEOM: MinDistance gives 0 instead of 20.88 X-Git-Tag: V5_1_4a1~74 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=43fa52fd870db0f51a188a4750d8d8ecf889da28;p=modules%2Fgeom.git 0020677: EDF 1219 GEOM: MinDistance gives 0 instead of 20.88 --- diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx index da56dd070..cbb229be6 100644 --- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx @@ -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 =