1 -- Created on: 1992-05-27
2 -- Created by: Remi LEQUETTE
3 -- Copyright (c) 1992-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 TFace from BRep inherits TFace from TopoDS
19 ---Purpose: The Tface from BRep is based on the TFace from
20 -- TopoDS. The TFace contains :
22 -- * A suface, a tolerance and a Location.
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).
28 -- * An optional Triangulation. If there is a
29 -- triangulation the surface can be absent.
31 -- The Location is used for the Surface.
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
38 -- The Surface may be shared by different TFaces but
39 -- not the Triangulation, because the Triangulation
40 -- may be modified by the edges.
46 Triangulation from Poly
50 Create returns mutable TFace from BRep;
51 ---Purpose: Creates an empty TFace.
53 Surface(me) returns any Surface from Geom;
55 ---C++: return const &
57 Triangulation(me) returns any Triangulation from Poly;
59 ---C++: return const &
61 Location(me) returns Location from TopLoc;
63 ---C++: return const &
65 Tolerance(me) returns Real;
68 Surface(me : mutable; S : Surface from Geom);
71 Triangulation(me : mutable; T : Triangulation from Poly);
74 Location(me : mutable; L : Location from TopLoc);
77 Tolerance(me : mutable; T : Real);
80 NaturalRestriction(me) returns Boolean;
83 NaturalRestriction(me : mutable; N : Boolean);
86 EmptyCopy(me) returns mutable TShape from TopoDS
87 ---Purpose: Returns a copy of the TShape with no sub-shapes.
88 -- The new Face has no triangulation.
93 mySurface : Surface from Geom;
94 myTriangulation : Triangulation from Poly;
95 myLocation : Location from TopLoc;
97 myNaturalRestriction : Boolean;