1 -- Created on: 1992-05-27
2 -- Created by: Remi LEQUETTE
3 -- Copyright (c) 1992-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
25 class TFace from BRep inherits TFace from TopoDS
27 ---Purpose: The Tface from BRep is based on the TFace from
28 -- TopoDS. The TFace contains :
30 -- * A suface, a tolerance and a Location.
32 -- * A NaturalRestriction flag, when this flag is
33 -- True the boundary of the face is known to be the
34 -- parametric space (Umin, UMax, VMin, VMax).
36 -- * An optional Triangulation. If there is a
37 -- triangulation the surface can be absent.
39 -- The Location is used for the Surface.
41 -- The triangulation is in the same reference system
42 -- than the TFace. A point on mySurface must be
43 -- transformed with myLocation, but not a point on
46 -- The Surface may be shared by different TFaces but
47 -- not the Triangulation, because the Triangulation
48 -- may be modified by the edges.
54 Triangulation from Poly
58 Create returns mutable TFace from BRep;
59 ---Purpose: Creates an empty TFace.
61 Surface(me) returns any Surface from Geom;
63 ---C++: return const &
65 Triangulation(me) returns any Triangulation from Poly;
67 ---C++: return const &
69 Location(me) returns Location from TopLoc;
71 ---C++: return const &
73 Tolerance(me) returns Real;
76 Surface(me : mutable; S : Surface from Geom);
79 Triangulation(me : mutable; T : Triangulation from Poly);
82 Location(me : mutable; L : Location from TopLoc);
85 Tolerance(me : mutable; T : Real);
88 NaturalRestriction(me) returns Boolean;
91 NaturalRestriction(me : mutable; N : Boolean);
94 EmptyCopy(me) returns mutable TShape from TopoDS
95 ---Purpose: Returns a copy of the TShape with no sub-shapes.
96 -- The new Face has no triangulation.
101 mySurface : Surface from Geom;
102 myTriangulation : Triangulation from Poly;
103 myLocation : Location from TopLoc;
105 myNaturalRestriction : Boolean;