X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FApproxInt%2FApproxInt_PrmPrmSvSurfaces.gxx;h=c4534f9d5570edde1a5128ac58c68dd9c6c47745;hp=5d516471328d7ce30eee23f61849a8b650848a93;hb=780ee4e25cc8de44daa10216e7e0d3bf963f3f29;hpb=7fd59977dfb3a75f75670474b59dfc0f3f5f90ba diff --git a/src/ApproxInt/ApproxInt_PrmPrmSvSurfaces.gxx b/src/ApproxInt/ApproxInt_PrmPrmSvSurfaces.gxx old mode 100755 new mode 100644 index 5d51647132..c4534f9d55 --- a/src/ApproxInt/ApproxInt_PrmPrmSvSurfaces.gxx +++ b/src/ApproxInt/ApproxInt_PrmPrmSvSurfaces.gxx @@ -1,13 +1,25 @@ -// File: ApproxInt_PrmPrmSvSurfaces.gxx -// Created: Wed Mar 17 12:42:28 1993 -// Author: Laurent BUCHARD -// +// Created on: 1993-03-17 +// Created by: Laurent BUCHARD +// Copyright (c) 1993-1999 Matra Datavision +// Copyright (c) 1999-2014 OPEN CASCADE SAS +// +// This file is part of Open CASCADE Technology software library. +// +// This library is free software; you can redistribute it and/or modify it under +// the terms of the GNU Lesser General Public License version 2.1 as published +// by the Free Software Foundation, with special exception defined in the file +// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT +// distribution for complete text of the license and disclaimer of any warranty. +// +// Alternatively, this file may be used under the terms of Open CASCADE +// commercial license or contractual agreement. #define TOLTANGENCY 0.0000000001 #include #include +#include #define Debug(expr) cout<<" expr :"<Compute(tu1,tv1,tu2,tv2,aP,aT,aTS1,aTS2); -#else this->Compute(tu1,tv1,tu2,tv2,aP,aT,aTS1,aTS2); -#endif P=MyPnt; } + +//======================================================================= +//function : SeekPoint +//purpose : Computes point on curve and +// parameters on the surfaces. +//======================================================================= +Standard_Boolean ApproxInt_PrmPrmSvSurfaces::SeekPoint(const Standard_Real u1, + const Standard_Real v1, + const Standard_Real u2, + const Standard_Real v2, + IntSurf_PntOn2S& Point) +{ + gp_Pnt aP; + gp_Vec aT; + gp_Vec2d aTS1,aTS2; + Standard_Real tu1=u1; + Standard_Real tu2=u2; + Standard_Real tv1=v1; + Standard_Real tv2=v2; + if (!Compute(tu1,tv1,tu2,tv2,aP,aT,aTS1,aTS2)) + return Standard_False; + + Point.SetValue(aP, tu1,tv1,tu2,tv2); + return Standard_True; +} //-------------------------------------------------------------------------------- Standard_Boolean ApproxInt_PrmPrmSvSurfaces::Tangency(const Standard_Real u1, const Standard_Real v1,