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
0022 inline bool HLRBRep_FaceIterator::MoreEdge() const
0023 {
0024 return iWire <= nbWires;
0025 }
0026
0027 //=================================================================================================
0028
0029 inline bool HLRBRep_FaceIterator::BeginningOfWire() const
0030 {
0031 return iEdge == 1;
0032 }
0033
0034 //=================================================================================================
0035
0036 inline bool HLRBRep_FaceIterator::EndOfWire() const
0037 {
0038 return iEdge == nbEdges;
0039 }
0040
0041 //=================================================================================================
0042
0043 inline void HLRBRep_FaceIterator::SkipWire()
0044 {
0045 iEdge = nbEdges;
0046 NextEdge();
0047 }
0048
0049 //=================================================================================================
0050
0051 inline occ::handle<HLRAlgo_EdgesBlock> HLRBRep_FaceIterator::Wire() const
0052 {
0053 return myWires->Wire(iWire);
0054 }
0055
0056 //=================================================================================================
0057
0058 inline int HLRBRep_FaceIterator::Edge() const
0059 {
0060 return myEdges->Edge(iEdge);
0061 }
0062
0063 //=================================================================================================
0064
0065 inline TopAbs_Orientation HLRBRep_FaceIterator::Orientation() const
0066 {
0067 return myEdges->Orientation(iEdge);
0068 }
0069
0070 //=================================================================================================
0071
0072 inline bool HLRBRep_FaceIterator::OutLine() const
0073 {
0074 return myEdges->OutLine(iEdge);
0075 }
0076
0077 //=================================================================================================
0078
0079 inline bool HLRBRep_FaceIterator::Internal() const
0080 {
0081 return myEdges->Internal(iEdge);
0082 }
0083
0084 //=================================================================================================
0085
0086 inline bool HLRBRep_FaceIterator::Double() const
0087 {
0088 return myEdges->Double(iEdge);
0089 }
0090
0091 //=================================================================================================
0092
0093 inline bool HLRBRep_FaceIterator::IsoLine() const
0094 {
0095 return myEdges->IsoLine(iEdge);
0096 }