Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/IntImp_ZerParFunc.lxx is written in an unsupported language. File is not indexed.

0001 // Copyright (c) 1995-1999 Matra Datavision
0002 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #include <StdFail_UndefinedDerivative.hxx>
0016 
0017 #include <gp_Pnt.hxx>
0018 #include <gp_Dir2d.hxx>
0019 #include <gp_Dir.hxx>
0020 
0021 inline Standard_Real IntImp_ZerParFunc::Root() const {
0022 
0023   return f[0]*f[0]+f[1]*f[1]+f[2]*f[2];
0024 }
0025 
0026 
0027 inline gp_Pnt IntImp_ZerParFunc::Point() const {
0028   return  gp_Pnt((pntsol1.XYZ()+ pntsol2.XYZ())/2.);
0029 }
0030 
0031 inline gp_Dir IntImp_ZerParFunc::Direction() const {
0032   if (tangent ) throw StdFail_UndefinedDerivative();
0033   return gp_Dir(tgduv[0]*dpuv[0].XYZ() + tgduv[1]*dpuv[1].XYZ());
0034 }
0035 
0036 inline gp_Dir2d IntImp_ZerParFunc::DirectionOnS1() const {
0037   if (tangent ) throw StdFail_UndefinedDerivative();
0038   return gp_Dir2d(tgduv[0],tgduv[1]);
0039 }
0040 
0041 inline gp_Dir2d IntImp_ZerParFunc::DirectionOnS2() const {
0042   if (tangent ) throw StdFail_UndefinedDerivative();
0043   return gp_Dir2d(tgduv[2],tgduv[3]);
0044 }
0045 
0046 inline const ThePSurface& IntImp_ZerParFunc::AuxillarSurface1() const { 
0047   return *((const ThePSurface* )surf1);
0048 }
0049 
0050 inline const ThePSurface& IntImp_ZerParFunc::AuxillarSurface2() const {
0051   return *((const ThePSurface* )surf2);
0052 }
0053