1 // Created on: 1997-04-17
2 // Created by: Christophe MARION
3 // Copyright (c) 1997-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.
22 //=======================================================================
23 //function : EDataArray
25 //=======================================================================
27 inline HLRBRep_Array1OfEData & HLRBRep_Data::EDataArray ()
30 //=======================================================================
31 //function : FDataArray
33 //=======================================================================
35 inline HLRBRep_Array1OfFData & HLRBRep_Data::FDataArray ()
38 //=======================================================================
39 //function : Tolerance
41 //=======================================================================
43 inline void HLRBRep_Data::Tolerance (const Standard_ShortReal tol)
46 //=======================================================================
47 //function : Tolerance
49 //=======================================================================
51 inline Standard_ShortReal HLRBRep_Data::Tolerance () const
54 //=======================================================================
55 //function : Projector
57 //=======================================================================
59 inline HLRAlgo_Projector & HLRBRep_Data::Projector ()
62 //=======================================================================
63 //function : NbVertices
65 //=======================================================================
67 inline Standard_Integer HLRBRep_Data::NbVertices () const
68 { return myNbVertices; }
70 //=======================================================================
73 //=======================================================================
75 inline Standard_Integer HLRBRep_Data::NbEdges () const
78 //=======================================================================
81 //=======================================================================
83 inline Standard_Integer HLRBRep_Data::NbFaces () const
86 //=======================================================================
89 //=======================================================================
91 inline TopTools_IndexedMapOfShape & HLRBRep_Data::EdgeMap ()
94 //=======================================================================
97 //=======================================================================
99 inline TopTools_IndexedMapOfShape & HLRBRep_Data::FaceMap ()
102 //=======================================================================
103 //function : SimpleHidingFace
105 //=======================================================================
107 inline Standard_Boolean HLRBRep_Data::SimpleHidingFace () const
108 { return iFaceSimp; }
110 //=======================================================================
111 //function : HidingTheFace
113 //=======================================================================
115 inline Standard_Boolean HLRBRep_Data::HidingTheFace () const
116 { return iFaceTest; }
118 //=======================================================================
119 //function : MoreInterference
121 //=======================================================================
123 inline Standard_Boolean HLRBRep_Data::MoreInterference () const
124 { return (iInterf <= myNbPoints + 2*myNbSegments); }
126 //=======================================================================
127 //function : Interference
129 //=======================================================================
131 inline HLRAlgo_Interference & HLRBRep_Data::Interference ()
134 //=======================================================================
135 //function :EdgeOfTheHidingFace
137 //=======================================================================
139 inline Standard_Boolean
140 HLRBRep_Data::EdgeOfTheHidingFace (const Standard_Integer,
141 const HLRBRep_EdgeData& ED) const
142 { return ED.HideCount() == myHideCount-1; }