1 // Created on: 2005-12-13
2 // Created by: Sergey KHROMOV
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
18 #include <TopoDS_Face.hxx>
20 //=======================================================================
21 //function : BRepGProp_Domain
22 //purpose : Empty constructor.
23 //=======================================================================
25 inline BRepGProp_Domain::BRepGProp_Domain ()
29 //=======================================================================
30 //function : BRepGProp_Domain
31 //purpose : Constructor. Initializes the domain with the face.
32 //=======================================================================
34 inline BRepGProp_Domain::BRepGProp_Domain (const TopoDS_Face& F) :
35 myExplorer(F.Oriented(TopAbs_FORWARD),TopAbs_EDGE)
39 //=======================================================================
41 //purpose : Initializes the domain with the face.
42 //=======================================================================
44 inline void BRepGProp_Domain::Init(const TopoDS_Face& F)
46 myExplorer.Init(F.Oriented(TopAbs_FORWARD),TopAbs_EDGE);
49 //=======================================================================
51 //purpose : Returns True if there is another arc of curve in the list.
52 //=======================================================================
54 inline Standard_Boolean BRepGProp_Domain::More ()
56 return myExplorer.More();
59 //=======================================================================
61 //purpose : Initializes the exploration with the face already set.
62 //=======================================================================
64 inline void BRepGProp_Domain::Init ()
69 //=======================================================================
71 //purpose : Returns the current edge.
72 //=======================================================================
74 inline const TopoDS_Edge& BRepGProp_Domain::Value ()
76 return TopoDS::Edge(myExplorer.Current());