1 -- Created on: 1995-03-14
2 -- Created by: Laurent PAINNOT
3 -- Copyright (c) 1995-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 class PolygonOnSurface from BRep inherits CurveRepresentation from BRep
19 ---Purpose: Representation of a 2D polygon in the parametric
20 -- space of a surface.
26 CurveRepresentation from BRep,
30 raises DomainError from Standard
35 Create(P: Polygon2D from Poly;
37 L: Location from TopLoc)
38 returns mutable PolygonOnSurface from BRep;
41 IsPolygonOnSurface(me) returns Boolean
42 ---Purpose: A 2D polygon representation in the parametric
43 -- space of a surface.
47 IsPolygonOnSurface(me; S: Surface from Geom; L: Location from TopLoc)
49 ---Purpose: A 2D polygon representation in the parametric
50 -- space of a surface.
54 Surface(me) returns any Surface from Geom
59 Polygon(me) returns any Polygon2D from Poly
60 ---C++: return const &
63 Polygon(me: mutable; P: Polygon2D from Poly)
67 Copy(me) returns mutable CurveRepresentation from BRep
68 ---Purpose: Return a copy of this representation.
74 myPolygon2D: Polygon2D from Poly;
75 mySurface : Surface from Geom;