b311480e |
1 | // Copyright (c) 1996-1999 Matra Datavision |
973c2be1 |
2 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
3 | // |
973c2be1 |
4 | // This file is part of Open CASCADE Technology software library. |
b311480e |
5 | // |
973c2be1 |
6 | // This library is free software; you can redistribute it and / or modify it |
7 | // under the terms of the GNU Lesser General Public version 2.1 as published |
8 | // by the Free Software Foundation, with special exception defined in the file |
9 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
10 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
11 | // |
973c2be1 |
12 | // Alternatively, this file may be used under the terms of Open CASCADE |
13 | // commercial license or contractual agreement. |
7fd59977 |
14 | |
15 | #include <TColGeom_HArray1OfSurface.hxx> |
16 | #include <Geom_BSplineSurface.hxx> |
17 | |
18 | |
b311480e |
19 | inline Standard_Boolean AdvApp2Var_ApproxAFunc2Var::IsDone() const |
7fd59977 |
20 | { |
21 | return myDone; |
22 | } |
23 | |
24 | inline Standard_Boolean AdvApp2Var_ApproxAFunc2Var::HasResult() const |
25 | { |
26 | return myHasResult; |
27 | } |
28 | |
29 | inline Handle(Geom_BSplineSurface) |
30 | AdvApp2Var_ApproxAFunc2Var::Surface( const Standard_Integer SSPIndex) const |
31 | { |
32 | return Handle(Geom_BSplineSurface)::DownCast( mySurfaces->Value(SSPIndex) ); |
33 | } |
34 | |
35 | inline Standard_Integer AdvApp2Var_ApproxAFunc2Var::UDegree() const |
36 | { |
37 | return myDegreeInU; |
38 | } |
39 | |
40 | inline Standard_Integer AdvApp2Var_ApproxAFunc2Var::VDegree() const |
41 | { |
42 | return myDegreeInV; |
43 | } |
44 | |
45 | inline Standard_Integer AdvApp2Var_ApproxAFunc2Var::NumSubSpaces(const Standard_Integer Dimension) const |
46 | { |
47 | return myNumSubSpaces[Dimension-1]; |
48 | } |
49 | |