1 -- Created on: 1993-07-05
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 deferred class CurveRepresentation from BRep inherits TShared from MMgt
19 ---Purpose: Root class for the curve representations. Contains
33 Triangulation from Poly,
34 PolygonOnTriangulation from Poly
37 DomainError from Standard
41 Initialize(L : Location from TopLoc);
43 -------------------------------------------------
44 -- What kind of representation
45 -------------------------------------------------
47 IsCurve3D(me) returns Boolean
48 ---Purpose: A 3D curve representation.
51 IsCurveOnSurface(me) returns Boolean
52 ---Purpose: A curve in the parametric space of a surface.
55 IsRegularity(me) returns Boolean
56 ---Purpose: A continuity between two surfaces.
59 IsCurveOnClosedSurface(me) returns Boolean
60 ---Purpose: A curve with two parametric curves on the same
64 IsCurveOnSurface(me; S : Surface from Geom;
65 L : Location from TopLoc) returns Boolean
66 ---Purpose: Is it a curve in the parametric space of <S> with
70 IsRegularity(me; S1,S2 : Surface from Geom;
71 L1,L2 : Location from TopLoc) returns Boolean
72 ---Purpose: Is it a regularity between <S1> and <S2> with
73 -- location <L1> and <L2>.
76 IsPolygon3D(me) returns Boolean
77 ---Purpose: A 3D polygon representation.
81 IsPolygonOnTriangulation(me) returns Boolean
82 ---Purpose: A representation by an array of nodes on a
87 IsPolygonOnTriangulation(me; T : Triangulation from Poly;
88 L : Location from TopLoc) returns Boolean
89 ---Purpose: Is it a polygon in the definition of <T> with
94 IsPolygonOnClosedTriangulation(me) returns Boolean
95 ---Purpose: A representation by two arrays of nodes on a
100 IsPolygonOnSurface(me) returns Boolean
101 ---Purpose: A polygon in the parametric space of a surface.
104 IsPolygonOnSurface(me;S : Surface from Geom;
105 L : Location from TopLoc) returns Boolean
106 ---Purpose: Is it a polygon in the parametric space of <S> with
111 IsPolygonOnClosedSurface(me) returns Boolean
112 ---Purpose: Two 2D polygon representations in the parametric
113 -- space of a surface.
116 -------------------------------------------------
118 -------------------------------------------------
120 Location(me) returns Location from TopLoc
121 ---C++: return const &
125 Location(me : mutable; L : Location from TopLoc)
129 -------------------------------------------------
131 -------------------------------------------------
133 Curve3D(me) returns any Curve from Geom
134 ---C++: return const &
136 DomainError from Standard -- if !IsCurve3D
139 Curve3D(me : mutable; C : Curve from Geom)
141 DomainError from Standard -- if !IsCurve3D
144 -------------------------------------------------
146 -------------------------------------------------
148 Surface(me) returns any Surface from Geom
149 ---C++: return const &
151 DomainError from Standard
154 PCurve(me) returns any Curve from Geom2d
155 ---C++: return const &
157 DomainError from Standard
160 PCurve(me : mutable; C : Curve from Geom2d)
162 DomainError from Standard
165 -------------------------------------------------
166 -- curve on closed surface
167 -------------------------------------------------
169 PCurve2(me) returns any Curve from Geom2d
170 ---C++: return const &
172 DomainError from Standard
175 PCurve2(me : mutable; C : Curve from Geom2d)
177 DomainError from Standard
181 -------------------------------------------------
183 -------------------------------------------------
185 Polygon3D(me) returns any Polygon3D from Poly
186 ---C++: return const&
189 Polygon3D(me: mutable;P: Polygon3D from Poly)
191 DomainError from Standard
194 -------------------------------------------------
195 -- polygon on surface
196 -------------------------------------------------
198 Polygon(me) returns any Polygon2D from Poly
199 ---C++: return const&
203 Polygon(me: mutable;P: Polygon2D from Poly)
205 DomainError from Standard
208 -------------------------------------------------
209 -- polygon on closed surface
210 -------------------------------------------------
212 Polygon2(me) returns any Polygon2D from Poly
213 ---C++: return const&
217 Polygon2(me: mutable;P: Polygon2D from Poly)
219 DomainError from Standard
222 -------------------------------------------------
223 -- polygon on triangulation
224 -------------------------------------------------
226 Triangulation(me) returns any Triangulation from Poly
227 ---C++: return const&
231 PolygonOnTriangulation(me) returns any PolygonOnTriangulation from Poly
232 ---C++: return const&
234 DomainError from Standard
238 PolygonOnTriangulation(me: mutable; P: PolygonOnTriangulation from Poly)
240 DomainError from Standard
243 -------------------------------------------------
244 -- polygon on closed triangulation
245 -------------------------------------------------
247 PolygonOnTriangulation2(me) returns any PolygonOnTriangulation from Poly
248 ---C++: return const&
250 DomainError from Standard
254 PolygonOnTriangulation2(me: mutable; P2: PolygonOnTriangulation from Poly)
256 DomainError from Standard
259 -------------------------------------------------
261 -------------------------------------------------
263 Surface2(me) returns any Surface from Geom
264 ---C++: return const &
266 DomainError from Standard
269 Location2(me) returns Location from TopLoc
270 ---C++: return const &
272 DomainError from Standard
275 Continuity(me) returns Shape from GeomAbs
276 ---C++: return const &
278 DomainError from Standard
281 Continuity(me : mutable; C : Shape from GeomAbs)
283 DomainError from Standard
287 Copy(me) returns mutable CurveRepresentation from BRep
288 ---Purpose: Return a copy of this representation.
293 myLocation : Location from TopLoc is protected;
295 end CurveRepresentation;