Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 2012-02-10
0002 // Created by: Sergey ZERCHANINOV
0003 // Copyright (c) 2012-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 //=======================================================================
0017 //function : Error
0018 //purpose  : 
0019 //=======================================================================
0020 
0021 inline Standard_Real IntPatch_Polygo::Error () const
0022 {
0023   return myError;
0024 }
0025 
0026 //=======================================================================
0027 //function : DeflectionOverEstimation
0028 //purpose  : 
0029 //=======================================================================
0030 
0031 inline Standard_Real IntPatch_Polygo::DeflectionOverEstimation () const
0032 {
0033   return myError;
0034 }
0035 
0036 //=======================================================================
0037 //function : NbSegments
0038 //purpose  : 
0039 //=======================================================================
0040 
0041 inline Standard_Integer IntPatch_Polygo::NbSegments () const
0042 {
0043   return NbPoints()-1;
0044 }
0045 
0046 //=======================================================================
0047 //function : BeginOfSeg
0048 //purpose  : 
0049 //=======================================================================
0050 
0051 inline void IntPatch_Polygo::Segment (const Standard_Integer theIndex,
0052                                       gp_Pnt2d &theBegin, gp_Pnt2d &theEnd) const
0053 {
0054   theBegin = Point(theIndex);
0055   theEnd = Point(theIndex+1);
0056 }