7fd59977 |
1 | #include <StdFail_NotDone.hxx> |
2 | #include <TColgp_HArray2OfPnt.hxx> |
3 | #include <TColgp_HArray1OfPnt2d.hxx> |
4 | #include <TColStd_HArray2OfReal.hxx> |
5 | #include <TColStd_HArray1OfReal.hxx> |
6 | #include <TColStd_HArray1OfInteger.hxx> |
7 | |
8 | |
9 | inline Standard_Boolean AppBlend_AppSurf::IsDone() const |
10 | { |
11 | return done; |
12 | } |
13 | |
14 | |
15 | inline Standard_Integer AppBlend_AppSurf::UDegree() const |
16 | { |
17 | if (!done) {StdFail_NotDone::Raise();} |
18 | return udeg; |
19 | } |
20 | |
21 | inline Standard_Integer AppBlend_AppSurf::VDegree() const |
22 | { |
23 | if (!done) {StdFail_NotDone::Raise();} |
24 | return vdeg; |
25 | } |
26 | |
27 | inline const TColgp_Array2OfPnt& AppBlend_AppSurf::SurfPoles() const |
28 | { |
29 | if (!done) {StdFail_NotDone::Raise();} |
30 | return tabPoles->Array2(); |
31 | } |
32 | |
33 | inline const TColStd_Array2OfReal& AppBlend_AppSurf::SurfWeights() const |
34 | { |
35 | if (!done) {StdFail_NotDone::Raise();} |
36 | return tabWeights->Array2(); |
37 | } |
38 | |
39 | |
40 | inline const TColStd_Array1OfReal& AppBlend_AppSurf::SurfUKnots() const |
41 | { |
42 | if (!done) {StdFail_NotDone::Raise();} |
43 | return tabUKnots->Array1(); |
44 | } |
45 | |
46 | inline const TColStd_Array1OfReal& AppBlend_AppSurf::SurfVKnots() const |
47 | { |
48 | if (!done) {StdFail_NotDone::Raise();} |
49 | return tabVKnots->Array1(); |
50 | } |
51 | |
52 | inline const TColStd_Array1OfInteger& AppBlend_AppSurf::SurfUMults() const |
53 | { |
54 | if (!done) {StdFail_NotDone::Raise();} |
55 | return tabUMults->Array1(); |
56 | } |
57 | |
58 | inline const TColStd_Array1OfInteger& AppBlend_AppSurf::SurfVMults() const |
59 | { |
60 | if (!done) {StdFail_NotDone::Raise();} |
61 | return tabVMults->Array1(); |
62 | } |
63 | |
64 | inline Standard_Integer AppBlend_AppSurf::NbCurves2d () const |
65 | { |
66 | if (!done) {StdFail_NotDone::Raise();} |
67 | return seqPoles2d.Length(); |
68 | } |
69 | |
70 | inline Standard_Integer AppBlend_AppSurf::Curves2dDegree() const |
71 | { |
72 | if (!done) {StdFail_NotDone::Raise();} |
73 | if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();} |
74 | return vdeg; |
75 | } |
76 | |
77 | inline const TColgp_Array1OfPnt2d& AppBlend_AppSurf:: |
78 | Curve2dPoles(const Standard_Integer Index) const |
79 | { |
80 | if (!done) {StdFail_NotDone::Raise();} |
81 | if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();} |
82 | return seqPoles2d(Index)->Array1(); |
83 | } |
84 | |
85 | inline const TColStd_Array1OfReal& AppBlend_AppSurf::Curves2dKnots () const |
86 | { |
87 | if (!done) {StdFail_NotDone::Raise();} |
88 | if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();} |
89 | return tabVKnots->Array1(); |
90 | } |
91 | |
92 | inline const TColStd_Array1OfInteger& AppBlend_AppSurf::Curves2dMults () const |
93 | { |
94 | if (!done) {StdFail_NotDone::Raise();} |
95 | if (seqPoles2d.Length() == 0) {Standard_DomainError::Raise();} |
96 | return tabVMults->Array1(); |
97 | } |
98 | |
99 | inline void AppBlend_AppSurf::TolReached (Standard_Real& Tol3d, |
100 | Standard_Real& Tol2d) const |
101 | { |
102 | if (!done) {StdFail_NotDone::Raise();} |
103 | Tol3d = tol3dreached; |
104 | Tol2d = tol2dreached; |
105 | } |
106 | |