1 // Created on: 1993-07-06
2 // Created by: Remi LEQUETTE
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
9 // under the terms of the GNU Lesser General Public 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 #include <BRep_CurveRepresentation.ixx>
18 #include <TColStd_HArray1OfInteger.hxx>
21 //=======================================================================
22 //function : BRep_CurveRepresentation
24 //=======================================================================
26 BRep_CurveRepresentation::BRep_CurveRepresentation(const TopLoc_Location& L):
32 //=======================================================================
33 //function : IsCurve3D
35 //=======================================================================
37 Standard_Boolean BRep_CurveRepresentation::IsCurve3D()const
39 return Standard_False;
43 //=======================================================================
44 //function : IsCurveOnSurface
46 //=======================================================================
48 Standard_Boolean BRep_CurveRepresentation::IsCurveOnSurface()const
50 return Standard_False;
54 //=======================================================================
55 //function : IsCurveOnClosedSurface
57 //=======================================================================
59 Standard_Boolean BRep_CurveRepresentation::IsCurveOnClosedSurface()const
61 return Standard_False;
65 //=======================================================================
66 //function : IsRegularity
68 //=======================================================================
70 Standard_Boolean BRep_CurveRepresentation::IsRegularity()const
72 return Standard_False;
75 //=======================================================================
76 //function : IsCurveOnSurface
78 //=======================================================================
80 Standard_Boolean BRep_CurveRepresentation::IsCurveOnSurface
81 (const Handle(Geom_Surface)& , const TopLoc_Location& )const
83 return Standard_False;
87 //=======================================================================
88 //function : IsRegularity
90 //=======================================================================
92 Standard_Boolean BRep_CurveRepresentation::IsRegularity
93 (const Handle(Geom_Surface)& ,
94 const Handle(Geom_Surface)& ,
95 const TopLoc_Location& ,
96 const TopLoc_Location& )const
98 return Standard_False;
101 //=======================================================================
102 //function : IsPolygon3D
104 //=======================================================================
106 Standard_Boolean BRep_CurveRepresentation::IsPolygon3D() const
108 return Standard_False;
111 //=======================================================================
112 //function : IsPolygonOnTriangulation
114 //=======================================================================
116 Standard_Boolean BRep_CurveRepresentation::IsPolygonOnTriangulation() const
118 return Standard_False;
122 //=======================================================================
123 //function : IsPolygonOnTriangulation
125 //=======================================================================
127 Standard_Boolean BRep_CurveRepresentation::IsPolygonOnTriangulation
128 (const Handle_Poly_Triangulation&, const TopLoc_Location&) const
130 return Standard_False;
134 //=======================================================================
135 //function : IsPolygonOnClosedTriangulation
137 //=======================================================================
139 Standard_Boolean BRep_CurveRepresentation::IsPolygonOnClosedTriangulation() const
141 return Standard_False;
145 //=======================================================================
146 //function : IsPolygonOnClosedSurface
148 //=======================================================================
150 Standard_Boolean BRep_CurveRepresentation::IsPolygonOnClosedSurface() const
152 return Standard_False;
155 //=======================================================================
156 //function : IsPolygonOnSurface
158 //=======================================================================
160 Standard_Boolean BRep_CurveRepresentation::IsPolygonOnSurface() const
162 return Standard_False;
165 //=======================================================================
166 //function : IsPolygonOnSurface
168 //=======================================================================
170 Standard_Boolean BRep_CurveRepresentation::IsPolygonOnSurface
171 (const Handle_Geom_Surface&,
172 const TopLoc_Location&) const
174 return Standard_False;
178 //=======================================================================
181 //=======================================================================
183 const Handle(Geom_Curve)& BRep_CurveRepresentation::Curve3D()const
185 Standard_DomainError::Raise("BRep_CurveRepresentation");
186 return *((Handle(Geom_Curve)*) NULL);
189 //=======================================================================
192 //=======================================================================
194 void BRep_CurveRepresentation::Curve3D(const Handle(Geom_Curve)&)
196 Standard_DomainError::Raise("BRep_CurveRepresentation");
203 //=======================================================================
206 //=======================================================================
208 const Handle(Geom_Surface)& BRep_CurveRepresentation::Surface()const
210 Standard_DomainError::Raise("BRep_CurveRepresentation");
211 return *((Handle(Geom_Surface)*) NULL);
215 //=======================================================================
218 //=======================================================================
220 const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve()const
222 Standard_DomainError::Raise("BRep_CurveRepresentation");
223 return *((Handle(Geom2d_Curve)*) NULL);
226 //=======================================================================
229 //=======================================================================
231 const Handle(Geom2d_Curve)& BRep_CurveRepresentation::PCurve2()const
233 Standard_DomainError::Raise("BRep_CurveRepresentation");
234 return *((Handle(Geom2d_Curve)*) NULL);
237 //=======================================================================
240 //=======================================================================
242 void BRep_CurveRepresentation::PCurve(const Handle(Geom2d_Curve)&)
244 Standard_DomainError::Raise("BRep_CurveRepresentation");
247 //=======================================================================
250 //=======================================================================
252 void BRep_CurveRepresentation::PCurve2(const Handle(Geom2d_Curve)&)
254 Standard_DomainError::Raise("BRep_CurveRepresentation");
258 //=======================================================================
259 //function : Continuity
261 //=======================================================================
263 const GeomAbs_Shape& BRep_CurveRepresentation::Continuity()const
265 Standard_DomainError::Raise("BRep_CurveRepresentation");
266 return *((GeomAbs_Shape*) NULL);
269 //=======================================================================
270 //function : Continuity
272 //=======================================================================
274 void BRep_CurveRepresentation::Continuity(const GeomAbs_Shape )
276 Standard_DomainError::Raise("BRep_CurveRepresentation");
280 //=======================================================================
281 //function : Surface2
283 //=======================================================================
285 const Handle(Geom_Surface)& BRep_CurveRepresentation::Surface2()const
287 Standard_DomainError::Raise("BRep_CurveRepresentation");
288 return *((Handle(Geom_Surface)*) NULL);
292 //=======================================================================
293 //function : Location2
295 //=======================================================================
297 const TopLoc_Location& BRep_CurveRepresentation::Location2()const
299 Standard_DomainError::Raise("BRep_CurveRepresentation");
300 return *((TopLoc_Location*) NULL);
305 //=======================================================================
306 //function : Polygon3D
308 //=======================================================================
310 const Handle(Poly_Polygon3D)& BRep_CurveRepresentation::Polygon3D()const
312 Standard_DomainError::Raise("BRep_CurveRepresentation");
313 return *((Handle(Poly_Polygon3D)*) NULL);
316 //=======================================================================
317 //function : Polygon3D
319 //=======================================================================
321 void BRep_CurveRepresentation::Polygon3D(const Handle(Poly_Polygon3D)&)
323 Standard_DomainError::Raise("BRep_CurveRepresentation");
327 //=======================================================================
330 //=======================================================================
332 const Handle(Poly_Polygon2D)& BRep_CurveRepresentation::Polygon()const
334 Standard_DomainError::Raise("BRep_CurveRepresentation");
335 return *((Handle(Poly_Polygon2D)*) NULL);
339 //=======================================================================
342 //=======================================================================
344 void BRep_CurveRepresentation::Polygon(const Handle(Poly_Polygon2D)&)
346 Standard_DomainError::Raise("BRep_CurveRepresentation");
349 //=======================================================================
350 //function : PolygonOnTriangulation2
352 //=======================================================================
354 const Handle(Poly_PolygonOnTriangulation)& BRep_CurveRepresentation::PolygonOnTriangulation2() const
356 Standard_DomainError::Raise("BRep_CurveRepresentation");
357 return *((Handle(Poly_PolygonOnTriangulation)*) NULL);
360 //=======================================================================
361 //function : PolygonOnTriangulation2
363 //=======================================================================
365 void BRep_CurveRepresentation::PolygonOnTriangulation2
366 (const Handle(Poly_PolygonOnTriangulation)&)
368 Standard_DomainError::Raise("BRep_CurveRepresentation");
372 //=======================================================================
373 //function : PolygonOnTriangulation
375 //=======================================================================
377 void BRep_CurveRepresentation::PolygonOnTriangulation
378 (const Handle(Poly_PolygonOnTriangulation)&)
380 Standard_DomainError::Raise("BRep_CurveRepresentation");
384 //=======================================================================
385 //function : PolygonOnTriangulation
387 //=======================================================================
389 const Handle(Poly_PolygonOnTriangulation)& BRep_CurveRepresentation::PolygonOnTriangulation()
392 Standard_DomainError::Raise("BRep_CurveRepresentation");
393 return *(Handle(Poly_PolygonOnTriangulation)*)NULL;
395 //=======================================================================
396 //function : Triangulation
398 //=======================================================================
400 const Handle(Poly_Triangulation)& BRep_CurveRepresentation::Triangulation()
403 Standard_DomainError::Raise("BRep_CurveRepresentation");
404 return *(Handle(Poly_Triangulation)*)NULL;
409 //=======================================================================
410 //function : Polygon2
412 //=======================================================================
414 const Handle(Poly_Polygon2D)& BRep_CurveRepresentation::Polygon2()const
416 Standard_DomainError::Raise("BRep_CurveRepresentation");
417 return *((Handle(Poly_Polygon2D)*) NULL);
421 //=======================================================================
422 //function : Polygon2
424 //=======================================================================
426 void BRep_CurveRepresentation::Polygon2(const Handle(Poly_Polygon2D)&)
428 Standard_DomainError::Raise("BRep_CurveRepresentation");