summaryrefslogtreecommitdiff
path: root/src/GeomFill/GeomFill_CornerState.cxx
blob: 32c65b17ca0cf9266af7696b9e8c6f418d6afcd8 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
// File:	GeomFill_CornerState.cxx
// Created:	Fri Dec  8 16:26:44 1995
// Author:	Laurent BOURESCHE
//		<lbo@phylox>


#include <GeomFill_CornerState.ixx>
//=======================================================================
//function : GeomFill_CornerState
//purpose  : 
//=======================================================================

GeomFill_CornerState::GeomFill_CornerState() :
 gap(RealLast()),
 isconstrained(0),
 scal(1.),
 coonscnd(1)
{
}


//=======================================================================
//function : Gap
//purpose  : 
//=======================================================================

Standard_Real GeomFill_CornerState::Gap() const 
{
  return gap;
}


//=======================================================================
//function : Gap
//purpose  : 
//=======================================================================

void GeomFill_CornerState::Gap(const Standard_Real G)
{
  gap = G;
}


//=======================================================================
//function : TgtAng
//purpose  : 
//=======================================================================

Standard_Real GeomFill_CornerState::TgtAng() const 
{
  return tgtang;
}


//=======================================================================
//function : TgtAng
//purpose  : 
//=======================================================================

void GeomFill_CornerState::TgtAng(const Standard_Real Ang)
{
  tgtang = Ang;
}


//=======================================================================
//function : HasConstraint
//purpose  : 
//=======================================================================

Standard_Boolean GeomFill_CornerState::HasConstraint() const 
{
  return isconstrained;
}


//=======================================================================
//function : Constraint
//purpose  : 
//=======================================================================

void GeomFill_CornerState::Constraint()
{
  isconstrained = 1;
}


//=======================================================================
//function : NorAng
//purpose  : 
//=======================================================================

Standard_Real GeomFill_CornerState::NorAng() const 
{
  return norang;
}


//=======================================================================
//function : NorAng
//purpose  : 
//=======================================================================

void GeomFill_CornerState::NorAng(const Standard_Real Ang)
{
  norang = Ang;
}


//=======================================================================
//function : IsToKill
//purpose  : 
//=======================================================================

Standard_Boolean GeomFill_CornerState::IsToKill(Standard_Real& Scal) const 
{
  Scal = scal;
  if(!isconstrained) return 0;
  return !coonscnd;
}


//=======================================================================
//function : DoKill
//purpose  : 
//=======================================================================

void GeomFill_CornerState::DoKill(const Standard_Real Scal)
{
  scal = Scal;
  coonscnd = 0;
}