b311480e |
1 | // Created on: 1993-09-28 |
2 | // Created by: Bruno DUMORTIER |
3 | // Copyright (c) 1993-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
7fd59977 |
17 | |
42cf5bc1 |
18 | #include <GeomFill_Filling.hxx> |
7fd59977 |
19 | #include <gp_Pnt.hxx> |
42cf5bc1 |
20 | #include <Standard_NoSuchObject.hxx> |
7fd59977 |
21 | |
22 | //======================================================================= |
23 | //function : GeomFill_Filling |
24 | //purpose : |
25 | //======================================================================= |
7fd59977 |
26 | GeomFill_Filling::GeomFill_Filling() |
d533dafb |
27 | : IsRational(Standard_False) |
7fd59977 |
28 | { |
29 | } |
30 | |
31 | |
32 | //======================================================================= |
33 | //function : NbUPoles |
34 | //purpose : |
35 | //======================================================================= |
36 | |
37 | Standard_Integer GeomFill_Filling::NbUPoles() const |
38 | { |
39 | return myPoles->ColLength(); |
40 | } |
41 | |
42 | //======================================================================= |
43 | //function : NbVPoles |
44 | //purpose : |
45 | //======================================================================= |
46 | |
47 | Standard_Integer GeomFill_Filling::NbVPoles() const |
48 | { |
49 | return myPoles->RowLength(); |
50 | } |
51 | |
52 | //======================================================================= |
53 | //function : Poles |
54 | //purpose : |
55 | //======================================================================= |
56 | |
57 | void GeomFill_Filling::Poles(TColgp_Array2OfPnt& Poles)const |
58 | { |
59 | Poles = myPoles->ChangeArray2(); |
60 | } |
61 | |
62 | //======================================================================= |
63 | //function : isRational |
64 | //purpose : |
65 | //======================================================================= |
66 | |
67 | Standard_Boolean GeomFill_Filling::isRational()const |
68 | { |
69 | return IsRational; |
70 | } |
71 | |
72 | |
73 | //======================================================================= |
74 | //function : Weights |
75 | //purpose : |
76 | //======================================================================= |
77 | |
78 | void GeomFill_Filling::Weights(TColStd_Array2OfReal& Weights)const |
79 | { |
80 | Weights = myWeights->ChangeArray2(); |
81 | } |
82 | |
83 | |