Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #include <Geom_Surface.hxx>
0015 #include <GeomAdaptor_Surface.hxx>
0016 
0017 //=======================================================================
0018 //function : Surface
0019 //purpose  : 
0020 //=======================================================================
0021 
0022 inline const Handle(Geom_Surface)& ShapeAnalysis_Surface::Surface() const
0023 {
0024   return mySurf;
0025 }
0026 
0027  
0028 //=======================================================================
0029 //function : TrueAdaptor3d
0030 //purpose  : 
0031 //=======================================================================
0032 
0033 inline const Handle(GeomAdaptor_Surface)& ShapeAnalysis_Surface::TrueAdaptor3d() const
0034 {
0035   return myAdSur;
0036 }
0037 
0038  
0039 //=======================================================================
0040 //function : Gap
0041 //purpose  : 
0042 //=======================================================================
0043 
0044 inline Standard_Real ShapeAnalysis_Surface::Gap() const
0045 {
0046   return myGap;
0047 }
0048 
0049  
0050 //=======================================================================
0051 //function : Value
0052 //purpose  : 
0053 //=======================================================================
0054 
0055 inline gp_Pnt ShapeAnalysis_Surface::Value (const Standard_Real u,
0056                                             const Standard_Real v) 
0057 {
0058   return myAdSur->Value ( u, v );
0059 }
0060 
0061  
0062 //=======================================================================
0063 //function : Value
0064 //purpose  : 
0065 //=======================================================================
0066 
0067 inline gp_Pnt ShapeAnalysis_Surface::Value(const gp_Pnt2d& p2d) 
0068 {
0069   return myAdSur->Value ( p2d.X(), p2d.Y() );
0070 }
0071 
0072  
0073 //=======================================================================
0074 //function : Bounds
0075 //purpose  : 
0076 //=======================================================================
0077 
0078 inline void ShapeAnalysis_Surface::Bounds (Standard_Real& ufirst, 
0079                                            Standard_Real& ulast,
0080                                            Standard_Real& vfirst,
0081                                            Standard_Real& vlast) const
0082 {
0083   ufirst = myUF;
0084   ulast  = myUL;
0085   vfirst = myVF;
0086   vlast  = myVL;
0087 }
0088 
0089 //=======================================================================
0090 //function : UCloseVal
0091 //purpose  : 
0092 //=======================================================================
0093 
0094 inline Standard_Real ShapeAnalysis_Surface::UCloseVal() const
0095 {
0096   return myUCloseVal;
0097 }
0098 
0099 //=======================================================================
0100 //function : VCloseVal
0101 //purpose  : 
0102 //=======================================================================
0103 
0104 inline Standard_Real ShapeAnalysis_Surface::VCloseVal() const
0105 {
0106   return myVCloseVal;
0107 }