7fd59977 |
1 | -- File: BRep_PolygonOnTriangulation.cdl |
2 | -- Created: Wed Mar 15 09:32:49 1995 |
3 | -- Author: Laurent PAINNOT |
4 | -- <lpa@metrox> |
5 | ---Copyright: Matra Datavision 1995 |
6 | |
7 | |
8 | class PolygonOnTriangulation from BRep inherits CurveRepresentation from BRep |
9 | |
10 | |
11 | ---Purpose: A representation by an array of nodes on a |
12 | -- triangulation. |
13 | |
14 | |
15 | uses Location from TopLoc, |
16 | PolygonOnTriangulation from Poly, |
17 | Triangulation from Poly |
18 | |
19 | |
20 | is |
21 | |
22 | Create(P: PolygonOnTriangulation from Poly; |
23 | T: Triangulation from Poly; |
24 | L: Location from TopLoc) |
25 | returns mutable PolygonOnTriangulation from BRep; |
26 | |
27 | |
28 | IsPolygonOnTriangulation(me) returns Boolean |
29 | ---Purpose: returns True. |
30 | is redefined; |
31 | |
32 | IsPolygonOnTriangulation(me; T : Triangulation from Poly; |
33 | L : Location from TopLoc) returns Boolean |
34 | ---Purpose: Is it a polygon in the definition of <T> with |
35 | -- location <L>. |
36 | is redefined; |
37 | |
38 | PolygonOnTriangulation(me: mutable; P: PolygonOnTriangulation from Poly) |
39 | ---Purpose: returns True. |
40 | is redefined; |
41 | |
42 | Triangulation(me) returns any Triangulation from Poly |
43 | ---C++: return const& |
44 | is redefined; |
45 | |
46 | PolygonOnTriangulation(me) returns any PolygonOnTriangulation from Poly |
47 | ---C++: return const& |
48 | is redefined; |
49 | |
50 | |
51 | Copy(me) returns mutable CurveRepresentation from BRep is virtual; |
52 | ---Purpose: Return a copy of this representation. |
53 | |
54 | |
55 | fields |
56 | |
57 | myPolygon : PolygonOnTriangulation from Poly; |
58 | myTriangulation : Triangulation from Poly; |
59 | |
60 | end PolygonOnTriangulation; |