0025418: Debug output to be limited to OCC development environment
[occt.git] / src / TopOpeBRepBuild / TopOpeBRepBuild_Pave.cxx
1 // Created on: 1994-11-14
2 // Created by: Jean Yves LEBEY
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #include <TopOpeBRepBuild_Pave.ixx>
18 #include <TopAbs.hxx>
19
20 //=======================================================================
21 //function : TopOpeBRepBuild_Pave
22 //purpose  : 
23 //=======================================================================
24
25 TopOpeBRepBuild_Pave::TopOpeBRepBuild_Pave
26 (const TopoDS_Shape& V, const Standard_Real P, const Standard_Boolean B) :
27 TopOpeBRepBuild_Loop(V),
28 myVertex(V),myParam(P),myIsShape(B),myHasSameDomain(Standard_False),myIntType(TopOpeBRepDS_FACE)
29 {
30 }
31
32 //=======================================================================
33 //function : HasSameDomain
34 //purpose  : 
35 //=======================================================================
36
37 void TopOpeBRepBuild_Pave::HasSameDomain(const Standard_Boolean B) 
38 {
39   myHasSameDomain = B;
40 }
41
42 //=======================================================================
43 //function : SameDomain
44 //purpose  : 
45 //=======================================================================
46
47 void TopOpeBRepBuild_Pave::SameDomain(const TopoDS_Shape& VSD) 
48 {
49   mySameDomain = VSD;
50 }
51
52 //=======================================================================
53 //function : HasSameDomain
54 //purpose  : 
55 //=======================================================================
56
57 Standard_Boolean TopOpeBRepBuild_Pave::HasSameDomain() const
58 {
59   return myHasSameDomain;
60 }
61
62 //=======================================================================
63 //function : SameDomain
64 //purpose  : 
65 //=======================================================================
66
67 const TopoDS_Shape& TopOpeBRepBuild_Pave::SameDomain() const
68 {
69   return mySameDomain;
70 }
71
72 //=======================================================================
73 //function : Vertex
74 //purpose  : 
75 //=======================================================================
76
77 const TopoDS_Shape& TopOpeBRepBuild_Pave::Vertex() const 
78 {
79   return myVertex;
80 }
81
82 //=======================================================================
83 //function : ChangeVertex
84 //purpose  : 
85 //=======================================================================
86
87 TopoDS_Shape& TopOpeBRepBuild_Pave::ChangeVertex()
88 {
89   return myVertex;
90 }
91
92 //=======================================================================
93 //function : Parameter
94 //purpose  : 
95 //=======================================================================
96
97 Standard_Real TopOpeBRepBuild_Pave::Parameter() const 
98 {
99   return myParam;
100 }
101
102 //modified by NIZHNY-MZV  Mon Feb 21 14:11:40 2000
103 //=======================================================================
104 //function : Parameter
105 //purpose  : 
106 //=======================================================================
107 void TopOpeBRepBuild_Pave::Parameter(const Standard_Real Par)  
108 {
109   myParam = Par;
110 }
111
112 //=======================================================================
113 //function : IsShape
114 //purpose  : 
115 //=======================================================================
116
117 Standard_Boolean TopOpeBRepBuild_Pave::IsShape() const 
118 {
119   return myIsShape;
120 }
121
122 //=======================================================================
123 //function : Shape
124 //purpose  : 
125 //=======================================================================
126
127 const TopoDS_Shape& TopOpeBRepBuild_Pave::Shape() const 
128 {
129   return myVertex;
130 }
131
132 //=======================================================================
133 //function : Dump
134 //purpose  : 
135 //=======================================================================
136
137 void TopOpeBRepBuild_Pave::Dump() const 
138 {
139 #ifdef OCCT_DEBUG
140   cout<<Parameter()<<" ";TopAbs::Print(Vertex().Orientation(),cout);
141 #endif
142 }
143
144 //modified by NIZHNY-MZV  Mon Feb 21 14:27:48 2000
145 //=======================================================================
146 //function : ChangeVertex
147 //purpose  : 
148 //=======================================================================
149
150 TopOpeBRepDS_Kind& TopOpeBRepBuild_Pave::InterferenceType()
151 {
152   return myIntType;
153 }