0024023: Revamp the OCCT Handle -- ambiguity
[occt.git] / src / BRep / BRep_PolygonOnSurface.cdl
CommitLineData
b311480e 1-- Created on: 1995-03-14
2-- Created by: Laurent PAINNOT
3-- Copyright (c) 1995-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
17class PolygonOnSurface from BRep inherits CurveRepresentation from BRep
18
19 ---Purpose: Representation of a 2D polygon in the parametric
20 -- space of a surface.
21
22
23uses
24 Polygon2D from Poly,
25 Surface from Geom,
26 CurveRepresentation from BRep,
27 Location from TopLoc
28
29
30raises DomainError from Standard
31
32
33is
34
35 Create(P: Polygon2D from Poly;
36 S: Surface from Geom;
37 L: Location from TopLoc)
6e33d3ce 38 returns PolygonOnSurface from BRep;
7fd59977 39
40
41 IsPolygonOnSurface(me) returns Boolean
42 ---Purpose: A 2D polygon representation in the parametric
43 -- space of a surface.
44 is redefined;
45
46
47 IsPolygonOnSurface(me; S: Surface from Geom; L: Location from TopLoc)
48 returns Boolean
49 ---Purpose: A 2D polygon representation in the parametric
50 -- space of a surface.
51 is redefined;
52
53
54 Surface(me) returns any Surface from Geom
55 ---C++: return const&
56 is redefined;
57
58
59 Polygon(me) returns any Polygon2D from Poly
60 ---C++: return const &
61 is redefined;
62
63 Polygon(me: mutable; P: Polygon2D from Poly)
64 is redefined;
65
66
6e33d3ce 67 Copy(me) returns CurveRepresentation from BRep
7fd59977 68 ---Purpose: Return a copy of this representation.
69 is redefined;
70
71
72fields
73
74myPolygon2D: Polygon2D from Poly;
75mySurface : Surface from Geom;
76
77
78end PolygonOnSurface;