1 // Created on: 1993-11-26
2 // Created by: Isabelle GRIGNON
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 //=======================================================================
18 //function : IndexOfS1
20 //=======================================================================
22 inline Standard_Integer ChFiDS_SurfData::IndexOfS1() const
27 //=======================================================================
28 //function : IsOnCurve1
30 //=======================================================================
32 inline Standard_Boolean ChFiDS_SurfData::IsOnCurve1() const
37 //=======================================================================
38 //function : IndexOfC1
40 //=======================================================================
42 inline Standard_Integer ChFiDS_SurfData::IndexOfC1() const
44 if(!isoncurv1) Standard_Failure::Raise("Interference pas sur courbe");
48 //=======================================================================
49 //function : SetIndexOfC1
51 //=======================================================================
53 inline void ChFiDS_SurfData::SetIndexOfC1(const Standard_Integer Index)
55 indexOfC1 = isoncurv1 = Index;
58 //=======================================================================
59 //function : IndexOfS2
61 //=======================================================================
63 inline Standard_Integer ChFiDS_SurfData::IndexOfS2() const
68 //=======================================================================
69 //function : IsOnCurve2
71 //=======================================================================
73 inline Standard_Boolean ChFiDS_SurfData::IsOnCurve2() const
78 //=======================================================================
79 //function : IndexOfC2
81 //=======================================================================
83 inline Standard_Integer ChFiDS_SurfData::IndexOfC2() const
85 if(!isoncurv2) Standard_Failure::Raise("Interference pas sur courbe");
89 //=======================================================================
90 //function : SetIndexOfC2
92 //=======================================================================
94 inline void ChFiDS_SurfData::SetIndexOfC2(const Standard_Integer Index)
96 indexOfC2 = isoncurv2 = Index;
99 //=======================================================================
102 //=======================================================================
104 inline Standard_Integer ChFiDS_SurfData::Surf()const
109 //=======================================================================
110 //function : Orientation
112 //=======================================================================
114 inline TopAbs_Orientation ChFiDS_SurfData::Orientation()const
119 //=======================================================================
120 //function : InterferenceOnS1
122 //=======================================================================
124 inline const ChFiDS_FaceInterference& ChFiDS_SurfData::InterferenceOnS1()const
130 //=======================================================================
131 //function : InterferenceOnS2
133 //=======================================================================
135 inline const ChFiDS_FaceInterference& ChFiDS_SurfData::InterferenceOnS2()const
141 //=======================================================================
142 //function : VertexFirstOnS1
144 //=======================================================================
146 inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexFirstOnS1() const
151 //=======================================================================
152 //function : VertexLastOnS1
154 //=======================================================================
156 inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexLastOnS1() const
161 //=======================================================================
162 //function : VertexFirstOnS2
164 //=======================================================================
166 inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexFirstOnS2() const
171 //=======================================================================
172 //function : VertexLastOnS2
174 //=======================================================================
176 inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexLastOnS2() const
182 //=======================================================================
183 //function : ChangeIndexOfS1
185 //=======================================================================
187 inline void ChFiDS_SurfData::ChangeIndexOfS1(const Standard_Integer Index)
192 //=======================================================================
193 //function : ChangeIndexOfS2
195 //=======================================================================
197 inline void ChFiDS_SurfData::ChangeIndexOfS2(const Standard_Integer Index)
202 //=======================================================================
203 //function : ChangeSurf
205 //=======================================================================
207 inline void ChFiDS_SurfData::ChangeSurf(const Standard_Integer Index)
209 indexOfConge = Index;
213 //=======================================================================
214 //function : ChangeOrientation
216 //=======================================================================
218 inline TopAbs_Orientation& ChFiDS_SurfData::ChangeOrientation()
223 //=======================================================================
224 //function : ChangeInterferenceOnS1
226 //=======================================================================
228 inline ChFiDS_FaceInterference& ChFiDS_SurfData::ChangeInterferenceOnS1()
234 //=======================================================================
235 //function : ChangeInterferenceOnS2
237 //=======================================================================
239 inline ChFiDS_FaceInterference& ChFiDS_SurfData::ChangeInterferenceOnS2()
245 //=======================================================================
246 //function : ChangeVertexFirstOnS1
248 //=======================================================================
250 inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexFirstOnS1()
255 //=======================================================================
256 //function : ChangeVertexLastOnS1
258 //=======================================================================
260 inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexLastOnS1()
265 //=======================================================================
266 //function : ChangeVertexFirstOnS2
268 //=======================================================================
270 inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexFirstOnS2()
275 //=======================================================================
276 //function : ChangeVertexLastOnS2
278 //=======================================================================
280 inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexLastOnS2()
285 //=======================================================================
286 //function : IsOnCurve
288 //=======================================================================
290 inline Standard_Boolean ChFiDS_SurfData::IsOnCurve(const Standard_Integer OnS) const
292 if(OnS == 1) return isoncurv1;
296 //=======================================================================
297 //function : IndexOfC
299 //=======================================================================
301 inline Standard_Integer ChFiDS_SurfData::IndexOfC(const Standard_Integer OnS) const
304 if(!isoncurv1) Standard_Failure::Raise("Interference pas sur courbe");
307 if(!isoncurv2) Standard_Failure::Raise("Interference pas sur courbe");
311 //=======================================================================
314 //=======================================================================
316 inline Standard_Boolean ChFiDS_SurfData::TwistOnS1() const
320 inline Standard_Boolean ChFiDS_SurfData::TwistOnS2() const
324 inline void ChFiDS_SurfData::TwistOnS1(const Standard_Boolean T)
328 inline void ChFiDS_SurfData::TwistOnS2(const Standard_Boolean T)