blob: c54d77a5adb0207c732c34c7b75157d1dfb029e8 (
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
|
// File: ChFiDS_ChamfSpine.cxx
// Created: Mon Apr 24 17:14:07 1995
// Author: Modelistation
// <model@phylox>
#include <ChFiDS_ChamfSpine.ixx>
#include <TColStd_HArray1OfBoolean.hxx>
//=======================================================================
//function : ChFiDS_ChamfSpine
//purpose :
//=======================================================================
ChFiDS_ChamfSpine::ChFiDS_ChamfSpine(){}
ChFiDS_ChamfSpine::ChFiDS_ChamfSpine(const Standard_Real Tol):
ChFiDS_Spine(Tol)
{}
//=======================================================================
//function : GetDist
//purpose :
//=======================================================================
void ChFiDS_ChamfSpine::GetDist(Standard_Real& Dis) const
{
if (mChamf != ChFiDS_Sym) Standard_Failure::Raise("Chamfer is not symetric");
Dis = d1;
}
//=======================================================================
//function : SetDist
//purpose :
//=======================================================================
void ChFiDS_ChamfSpine::SetDist(const Standard_Real Dis)
{
//isconstant->Init(Standard_True);
mChamf = ChFiDS_Sym;
d1 = Dis;
}
//=======================================================================
//function : Dists
//purpose :
//=======================================================================
void ChFiDS_ChamfSpine::Dists(Standard_Real& Dis1,
Standard_Real& Dis2)const
{
if (mChamf != ChFiDS_TwoDist) Standard_Failure::Raise("Chamfer is not a Two Dists Chamfer");
Dis1 = d1;
Dis2 = d2;
}
//=======================================================================
//function : SetDists
//purpose :
//=======================================================================
void ChFiDS_ChamfSpine::SetDists(const Standard_Real Dis1,
const Standard_Real Dis2)
{
//isconstant->Init(Standard_True);
mChamf = ChFiDS_TwoDist;
d1 = Dis1;
d2 = Dis2;
}
//=======================================================================
//function : GetDistAngle
//purpose :
//=======================================================================
void ChFiDS_ChamfSpine::GetDistAngle(Standard_Real& Dis,
Standard_Real& Angle,
Standard_Boolean& DisOnF1)const
{
if (mChamf != ChFiDS_DistAngle) Standard_Failure::Raise("Chamfer is not a Two Dists Chamfer");
Dis = d1;
Angle = angle;
DisOnF1 = dison1;
}
//=======================================================================
//function : SetDistAngle
//purpose :
//=======================================================================
void ChFiDS_ChamfSpine::SetDistAngle(const Standard_Real Dis,
const Standard_Real Angle,
const Standard_Boolean DisOnF1)
{
//isconstant->Init(Standard_True);
mChamf = ChFiDS_DistAngle;
d1 = Dis;
angle = Angle;
dison1 = DisOnF1;
}
//=======================================================================
//function : IsChamfer
//purpose :
//=======================================================================
ChFiDS_ChamfMethod ChFiDS_ChamfSpine::IsChamfer() const
{
return mChamf;
}
|