summaryrefslogtreecommitdiff
path: root/inc/Approx_SweepApproximation.lxx
blob: 3cf6ef1ad75785baafb32aecefdb656897bbdd74 (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
// File:	Approx_SweepApproximation.lxx
// Created:	Thu Jun 26 15:33:33 1997
// Author:	Philippe MANGIN
//		<pmn@sgi29>

#include <StdFail_NotDone.hxx>
#include <TColgp_HArray2OfPnt.hxx>
#include <TColgp_HArray1OfPnt2d.hxx>
#include <TColStd_HArray2OfReal.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray1OfInteger.hxx>

inline  Standard_Boolean Approx_SweepApproximation::IsDone() const
{
  return done;
}

 
inline  Standard_Integer Approx_SweepApproximation::UDegree() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
  return udeg;
}

 
inline  Standard_Integer Approx_SweepApproximation::VDegree() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
  return vdeg;
}

 
inline const TColgp_Array2OfPnt& Approx_SweepApproximation::SurfPoles() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
  return tabPoles->Array2();
}

 
inline const TColStd_Array2OfReal& Approx_SweepApproximation::SurfWeights() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
  return tabWeights->Array2();
}

 
inline const TColStd_Array1OfReal& Approx_SweepApproximation::SurfUKnots() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
  return tabUKnots->Array1();
}

 
inline const TColStd_Array1OfReal& Approx_SweepApproximation::SurfVKnots() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
  return tabVKnots->Array1();
}

 
inline const TColStd_Array1OfInteger& Approx_SweepApproximation::SurfUMults() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
  return tabUMults->Array1();
}

 
inline const TColStd_Array1OfInteger& Approx_SweepApproximation::SurfVMults() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
  return tabVMults->Array1();
}

 
inline  Standard_Integer Approx_SweepApproximation::NbCurves2d() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
  return Num2DSS;
}

 
inline  Standard_Integer Approx_SweepApproximation::Curves2dDegree() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
  if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
  return deg2d;
}

 
inline const TColgp_Array1OfPnt2d& Approx_SweepApproximation::Curve2dPoles(const Standard_Integer Index) const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
 if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
  return seqPoles2d(Index)->Array1();
}

 
inline const TColStd_Array1OfReal& Approx_SweepApproximation::Curves2dKnots() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
  if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
  return tab2dKnots->Array1();
}

 
inline const TColStd_Array1OfInteger& Approx_SweepApproximation::Curves2dMults() const
{
  if (!done) {StdFail_NotDone::Raise(" Approx_SweepApproximation");}
 if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();}
  return tab2dMults->Array1();
}

/* 
inline  void Approx_SweepApproximation::TolReached(Standard_Real& Tol3d,Standard_Real& Tol2d) const
{

}*/