7fd59977 |
1 | -- File: BRep_PolygonOnSurface.cdl |
2 | -- Created: Tue Mar 14 18:30:24 1995 |
3 | -- Author: Laurent PAINNOT |
4 | -- <lpa@metrox> |
5 | ---Copyright: Matra Datavision 1995 |
6 | |
7 | |
8 | class PolygonOnSurface from BRep inherits CurveRepresentation from BRep |
9 | |
10 | ---Purpose: Representation of a 2D polygon in the parametric |
11 | -- space of a surface. |
12 | |
13 | |
14 | uses |
15 | Polygon2D from Poly, |
16 | Surface from Geom, |
17 | CurveRepresentation from BRep, |
18 | Location from TopLoc |
19 | |
20 | |
21 | raises DomainError from Standard |
22 | |
23 | |
24 | is |
25 | |
26 | Create(P: Polygon2D from Poly; |
27 | S: Surface from Geom; |
28 | L: Location from TopLoc) |
29 | returns mutable PolygonOnSurface from BRep; |
30 | |
31 | |
32 | IsPolygonOnSurface(me) returns Boolean |
33 | ---Purpose: A 2D polygon representation in the parametric |
34 | -- space of a surface. |
35 | is redefined; |
36 | |
37 | |
38 | IsPolygonOnSurface(me; S: Surface from Geom; L: Location from TopLoc) |
39 | returns Boolean |
40 | ---Purpose: A 2D polygon representation in the parametric |
41 | -- space of a surface. |
42 | is redefined; |
43 | |
44 | |
45 | Surface(me) returns any Surface from Geom |
46 | ---C++: return const& |
47 | is redefined; |
48 | |
49 | |
50 | Polygon(me) returns any Polygon2D from Poly |
51 | ---C++: return const & |
52 | is redefined; |
53 | |
54 | Polygon(me: mutable; P: Polygon2D from Poly) |
55 | is redefined; |
56 | |
57 | |
58 | Copy(me) returns mutable CurveRepresentation from BRep |
59 | ---Purpose: Return a copy of this representation. |
60 | is redefined; |
61 | |
62 | |
63 | fields |
64 | |
65 | myPolygon2D: Polygon2D from Poly; |
66 | mySurface : Surface from Geom; |
67 | |
68 | |
69 | end PolygonOnSurface; |