0024530: TKMesh - remove unused package IntPoly
[occt.git] / src / BOPAlgo / BOPAlgo_WireEdgeSet.lxx
CommitLineData
4e57c75e 1// Created by: Peter KURNEV
973c2be1 2// Copyright (c) 2010-2014 OPEN CASCADE SAS
4e57c75e 3// Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4// Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5// EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
b311480e 6//
973c2be1 7// This file is part of Open CASCADE Technology software library.
b311480e 8//
973c2be1 9// This library is free software; you can redistribute it and / or modify it
10// under the terms of the GNU Lesser General Public version 2.1 as published
11// by the Free Software Foundation, with special exception defined in the file
12// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
13// distribution for complete text of the license and disclaimer of any warranty.
b311480e 14//
973c2be1 15// Alternatively, this file may be used under the terms of Open CASCADE
16// commercial license or contractual agreement.
7fd59977 17
7fd59977 18//=======================================================================
4e57c75e 19//function :
7fd59977 20//purpose :
21//=======================================================================
4e57c75e 22 inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet()
7fd59977 23{
24}
7fd59977 25//=======================================================================
4e57c75e 26//function :
7fd59977 27//purpose :
28//=======================================================================
4e57c75e 29 inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet(const Handle(NCollection_BaseAllocator)& theAllocator)
30:
31 myStartShapes(theAllocator),
32 myShapes(theAllocator)
7fd59977 33{
34}
7fd59977 35//=======================================================================
4e57c75e 36//function : ~
7fd59977 37//purpose :
38//=======================================================================
4e57c75e 39 inline BOPAlgo_WireEdgeSet::~BOPAlgo_WireEdgeSet()
7fd59977 40{
41}
7fd59977 42//=======================================================================
4e57c75e 43//function : Clear
7fd59977 44//purpose :
45//=======================================================================
4e57c75e 46 inline void BOPAlgo_WireEdgeSet::Clear()
7fd59977 47{
4e57c75e 48 myStartShapes.Clear();
49 myShapes.Clear();
7fd59977 50}
7fd59977 51//=======================================================================
4e57c75e 52//function : SetFace
7fd59977 53//purpose :
54//=======================================================================
4e57c75e 55 inline void BOPAlgo_WireEdgeSet::SetFace(const TopoDS_Face& aF)
7fd59977 56{
4e57c75e 57 myFace=aF;
7fd59977 58}
7fd59977 59//=======================================================================
4e57c75e 60//function : Face
7fd59977 61//purpose :
62//=======================================================================
4e57c75e 63 inline const TopoDS_Face& BOPAlgo_WireEdgeSet::Face()const
7fd59977 64{
4e57c75e 65 return myFace;
7fd59977 66}
7fd59977 67//=======================================================================
4e57c75e 68//function : AddStartElement
7fd59977 69//purpose :
70//=======================================================================
4e57c75e 71 inline void BOPAlgo_WireEdgeSet::AddStartElement(const TopoDS_Shape& aE)
7fd59977 72{
4e57c75e 73 myStartShapes.Append(aE);
7fd59977 74}
7fd59977 75//=======================================================================
4e57c75e 76//function : StartElements
7fd59977 77//purpose :
78//=======================================================================
4e57c75e 79 inline const BOPCol_ListOfShape& BOPAlgo_WireEdgeSet::StartElements()const
7fd59977 80{
4e57c75e 81 return myStartShapes;
7fd59977 82}
7fd59977 83//=======================================================================
4e57c75e 84//function : AddShape
7fd59977 85//purpose :
86//=======================================================================
4e57c75e 87 inline void BOPAlgo_WireEdgeSet::AddShape(const TopoDS_Shape& aW)
7fd59977 88{
4e57c75e 89 myShapes.Append(aW);
90}
91//=======================================================================
92//function : Shapes
93//purpose :
94//=======================================================================
95 inline const BOPCol_ListOfShape& BOPAlgo_WireEdgeSet::Shapes()const
96{
97 return myShapes;
7fd59977 98}