1 // Created on: 1993-07-26
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-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 under
9 // the terms of the GNU Lesser General Public License 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 #include <PBRep_TFace.ixx>
20 //=======================================================================
21 //function : PBRep_TFace
23 //=======================================================================
25 PBRep_TFace::PBRep_TFace() :
27 myNaturalRestriction(Standard_False)
31 //=======================================================================
34 //=======================================================================
36 Handle(PGeom_Surface) PBRep_TFace::Surface() const
41 //=======================================================================
42 //function : Triangulation
44 //=======================================================================
46 Handle(PPoly_Triangulation) PBRep_TFace::Triangulation() const
48 return myTriangulation;
52 //=======================================================================
55 //=======================================================================
57 PTopLoc_Location PBRep_TFace::Location() const
63 //=======================================================================
64 //function : Tolerance
66 //=======================================================================
68 Standard_Real PBRep_TFace::Tolerance() const
74 //=======================================================================
77 //=======================================================================
79 void PBRep_TFace::Surface(const Handle(PGeom_Surface)& S)
85 //=======================================================================
86 //function : Triangulation
88 //=======================================================================
90 void PBRep_TFace::Triangulation(const Handle(PPoly_Triangulation)& T)
95 //=======================================================================
98 //=======================================================================
100 void PBRep_TFace::Location(const PTopLoc_Location& L)
106 //=======================================================================
107 //function : Tolerance
109 //=======================================================================
111 void PBRep_TFace::Tolerance(const Standard_Real T)
116 //=======================================================================
117 //function : NaturalRestriction
119 //=======================================================================
121 Standard_Boolean PBRep_TFace::NaturalRestriction()const
123 return myNaturalRestriction;
127 //=======================================================================
128 //function : NaturalRestriction
130 //=======================================================================
132 void PBRep_TFace::NaturalRestriction(const Standard_Boolean N)
134 myNaturalRestriction = N;