7fd59977 |
1 | // File: BRepFill_MultiLineTool.cxx |
2 | // Created: Mon Nov 14 15:24:57 1994 |
3 | // Author: Bruno DUMORTIER |
4 | // <dub@fuegox> |
5 | |
6 | |
7 | #include <BRepFill_MultiLineTool.ixx> |
8 | |
9 | |
10 | #include <gp_Pnt.hxx> |
11 | #include <gp_Pnt2d.hxx> |
12 | |
13 | //======================================================================= |
14 | //function : FirstParameter |
15 | //purpose : |
16 | //======================================================================= |
17 | |
18 | Standard_Real BRepFill_MultiLineTool::FirstParameter |
19 | (const BRepFill_MultiLine& ML) |
20 | { |
21 | return ML.FirstParameter(); |
22 | } |
23 | |
24 | |
25 | //======================================================================= |
26 | //function : LastParameter |
27 | //purpose : |
28 | //======================================================================= |
29 | |
30 | Standard_Real BRepFill_MultiLineTool::LastParameter |
31 | (const BRepFill_MultiLine& ML) |
32 | { |
33 | return ML.LastParameter(); |
34 | } |
35 | |
36 | |
37 | //======================================================================= |
38 | //function : NbP2d |
39 | //purpose : |
40 | //======================================================================= |
41 | |
42 | Standard_Integer BRepFill_MultiLineTool::NbP2d |
43 | (const BRepFill_MultiLine&) |
44 | { |
45 | return 2; |
46 | } |
47 | |
48 | |
49 | //======================================================================= |
50 | //function : NbP3d |
51 | //purpose : |
52 | //======================================================================= |
53 | |
54 | Standard_Integer BRepFill_MultiLineTool::NbP3d(const BRepFill_MultiLine&) |
55 | { |
56 | return 1; |
57 | } |
58 | |
59 | |
60 | //======================================================================= |
61 | //function : Value |
62 | //purpose : |
63 | //======================================================================= |
64 | |
65 | void BRepFill_MultiLineTool::Value(const BRepFill_MultiLine& , |
66 | const Standard_Real, |
67 | TColgp_Array1OfPnt&) |
68 | { |
69 | } |
70 | |
71 | |
72 | //======================================================================= |
73 | //function : Value |
74 | //purpose : |
75 | //======================================================================= |
76 | |
77 | void BRepFill_MultiLineTool::Value(const BRepFill_MultiLine&, |
78 | const Standard_Real, |
79 | TColgp_Array1OfPnt2d&) |
80 | { |
81 | } |
82 | |
83 | |
84 | //======================================================================= |
85 | //function : Value |
86 | //purpose : |
87 | //======================================================================= |
88 | |
89 | void BRepFill_MultiLineTool::Value(const BRepFill_MultiLine& ML, |
90 | const Standard_Real U, |
91 | TColgp_Array1OfPnt& tabPt, |
92 | TColgp_Array1OfPnt2d& tabPt2d) |
93 | { |
94 | tabPt(1) = ML.Value(U); |
95 | tabPt2d(1) = ML.ValueOnF1(U); |
96 | tabPt2d(2) = ML.ValueOnF2(U); |
97 | } |
98 | |
99 | |
100 | //======================================================================= |
101 | //function : D1 |
102 | //purpose : |
103 | //======================================================================= |
104 | |
105 | Standard_Boolean BRepFill_MultiLineTool::D1(const BRepFill_MultiLine&, |
106 | const Standard_Real, |
107 | TColgp_Array1OfVec&) |
108 | { |
109 | return Standard_False; |
110 | } |
111 | |
112 | |
113 | //======================================================================= |
114 | //function : D1 |
115 | //purpose : |
116 | //======================================================================= |
117 | |
118 | Standard_Boolean BRepFill_MultiLineTool::D1(const BRepFill_MultiLine&, |
119 | const Standard_Real, |
120 | TColgp_Array1OfVec2d&) |
121 | { |
122 | return Standard_False; |
123 | } |
124 | |
125 | |
126 | //======================================================================= |
127 | //function : D1 |
128 | //purpose : |
129 | //======================================================================= |
130 | |
131 | Standard_Boolean BRepFill_MultiLineTool::D1(const BRepFill_MultiLine&, |
132 | const Standard_Real, |
133 | TColgp_Array1OfVec&, |
134 | TColgp_Array1OfVec2d&) |
135 | { |
136 | return Standard_False; |
137 | } |