Warning, /include/opencascade/HLRBRep_FaceIterator.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1997-04-17
0002 // Created by: Christophe MARION
0003 // Copyright (c) 1997-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016
0017 #include <HLRAlgo_WiresBlock.hxx>
0018 #include <HLRAlgo_EdgesBlock.hxx>
0019
0020 //=======================================================================
0021 //function : MoreEdge
0022 //purpose :
0023 //=======================================================================
0024
0025 inline Standard_Boolean HLRBRep_FaceIterator::MoreEdge () const
0026 { return iWire <= nbWires;}
0027
0028 //=======================================================================
0029 //function : BeginningOfWire
0030 //purpose :
0031 //=======================================================================
0032
0033 inline Standard_Boolean HLRBRep_FaceIterator::BeginningOfWire () const
0034 { return iEdge == 1;}
0035
0036 //=======================================================================
0037 //function : EndOfWire
0038 //purpose :
0039 //=======================================================================
0040
0041 inline Standard_Boolean HLRBRep_FaceIterator::EndOfWire () const
0042 { return iEdge == nbEdges;}
0043
0044 //=======================================================================
0045 //function : SkipWire
0046 //purpose :
0047 //=======================================================================
0048
0049 inline void HLRBRep_FaceIterator::SkipWire ()
0050 {
0051 iEdge = nbEdges;
0052 NextEdge();
0053 }
0054
0055 //=======================================================================
0056 //function : Wire
0057 //purpose :
0058 //=======================================================================
0059
0060 inline Handle(HLRAlgo_EdgesBlock) HLRBRep_FaceIterator::Wire() const
0061 { return myWires->Wire(iWire); }
0062
0063 //=======================================================================
0064 //function : Edge
0065 //purpose :
0066 //=======================================================================
0067
0068 inline Standard_Integer HLRBRep_FaceIterator::Edge () const
0069 { return myEdges->Edge(iEdge); }
0070
0071 //=======================================================================
0072 //function : Orientation
0073 //purpose :
0074 //=======================================================================
0075
0076 inline TopAbs_Orientation HLRBRep_FaceIterator::Orientation() const
0077 { return myEdges->Orientation(iEdge); }
0078
0079 //=======================================================================
0080 //function : OutLine
0081 //purpose :
0082 //=======================================================================
0083
0084 inline Standard_Boolean HLRBRep_FaceIterator::OutLine() const
0085 { return myEdges->OutLine(iEdge); }
0086
0087 //=======================================================================
0088 //function : Internal
0089 //purpose :
0090 //=======================================================================
0091
0092 inline Standard_Boolean HLRBRep_FaceIterator::Internal() const
0093 { return myEdges->Internal(iEdge); }
0094
0095 //=======================================================================
0096 //function : Double
0097 //purpose :
0098 //=======================================================================
0099
0100 inline Standard_Boolean HLRBRep_FaceIterator::Double() const
0101 { return myEdges->Double(iEdge); }
0102
0103 //=======================================================================
0104 //function : IsoLine
0105 //purpose :
0106 //=======================================================================
0107
0108 inline Standard_Boolean HLRBRep_FaceIterator::IsoLine() const
0109 { return myEdges->IsoLine(iEdge); }