summaryrefslogtreecommitdiff
path: root/src/BRepMesh/BRepMesh_PairOfPolygon.cxx
blob: 7f7b27f9dadbd505a323b733f1fa36d340d09e63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// File:      BRepMesh_PairOfPolygon.cxx
// Created:   26.01.09 11:08:29
// Author:    Pavel TELKOV
// Copyright: Open CASCADE 2009

#include <BRepMesh_PairOfPolygon.ixx>

//=======================================================================
//function : Constructor
//purpose  : 
//=======================================================================

BRepMesh_PairOfPolygon::BRepMesh_PairOfPolygon()
{
}

//=======================================================================
//function : Clear
//purpose  : 
//=======================================================================

void BRepMesh_PairOfPolygon::Clear()
{
  myFirst.Nullify();
  myLast.Nullify();
}

//=======================================================================
//function : Prepend
//purpose  : 
//=======================================================================

void BRepMesh_PairOfPolygon::Prepend
 ( const Handle(Poly_PolygonOnTriangulation)& theItem )
{
  myFirst = theItem;
  if (myLast.IsNull())
    myLast = theItem;
}

//=======================================================================
//function : Append
//purpose  : 
//=======================================================================

void BRepMesh_PairOfPolygon::Append
 ( const Handle(Poly_PolygonOnTriangulation)& theItem )
{
  if (myFirst.IsNull())
    myFirst = theItem;
  myLast = theItem;
}