0024750: Replace instantiations of TCollection generic classes by NCollection templat...
[occt.git] / src / BRep / BRep_TFace.cdl
CommitLineData
b311480e 1-- Created on: 1992-05-27
2-- Created by: Remi LEQUETTE
3-- Copyright (c) 1992-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 TFace from BRep inherits TFace from TopoDS
18
19 ---Purpose: The Tface from BRep is based on the TFace from
20 -- TopoDS. The TFace contains :
21 --
22 -- * A suface, a tolerance and a Location.
23 --
24 -- * A NaturalRestriction flag, when this flag is
25 -- True the boundary of the face is known to be the
26 -- parametric space (Umin, UMax, VMin, VMax).
27 --
28 -- * An optional Triangulation. If there is a
29 -- triangulation the surface can be absent.
30 --
31 -- The Location is used for the Surface.
32 --
33 -- The triangulation is in the same reference system
34 -- than the TFace. A point on mySurface must be
35 -- transformed with myLocation, but not a point on
36 -- the triangulation.
37 --
38 -- The Surface may be shared by different TFaces but
39 -- not the Triangulation, because the Triangulation
40 -- may be modified by the edges.
41 --
42uses
43 Surface from Geom,
44 Location from TopLoc,
45 TShape from TopoDS,
46 Triangulation from Poly
47
48is
49
6e33d3ce 50 Create returns TFace from BRep;
7fd59977 51 ---Purpose: Creates an empty TFace.
52
53 Surface(me) returns any Surface from Geom;
54 ---C++: inline
55 ---C++: return const &
56
57 Triangulation(me) returns any Triangulation from Poly;
58 ---C++: inline
59 ---C++: return const &
60
61 Location(me) returns Location from TopLoc;
62 ---C++: inline
63 ---C++: return const &
64
65 Tolerance(me) returns Real;
66 ---C++: inline
67
68 Surface(me : mutable; S : Surface from Geom);
69 ---C++: inline
70
71 Triangulation(me : mutable; T : Triangulation from Poly);
72 ---C++: inline
73
74 Location(me : mutable; L : Location from TopLoc);
75 ---C++: inline
76
77 Tolerance(me : mutable; T : Real);
78 ---C++: inline
79
80 NaturalRestriction(me) returns Boolean;
81 ---C++: inline
82
83 NaturalRestriction(me : mutable; N : Boolean);
84 ---C++: inline
85
6e33d3ce 86 EmptyCopy(me) returns TShape from TopoDS
7fd59977 87 ---Purpose: Returns a copy of the TShape with no sub-shapes.
88 -- The new Face has no triangulation.
89 is redefined;
90
91fields
92
93 mySurface : Surface from Geom;
94 myTriangulation : Triangulation from Poly;
95 myLocation : Location from TopLoc;
96 myTolerance : Real;
97 myNaturalRestriction : Boolean;
98
99end TFace;
100