0025266: Debug statements in the source are getting flushed on to the console
[occt.git] / src / ShapeUpgrade / ShapeUpgrade_FixSmallCurves.cxx
1 // Created on: 2000-06-07
2 // Created by: Galina KULIKOVA
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #include <ShapeUpgrade_FixSmallCurves.ixx>
17 //#include <TColGeom_HArray1OfCurve.hxx>
18 //#include <TColStd_HSequenceOfReal.hxx>
19 #//include <TColGeom2d_HArray1OfCurve.hxx>
20 //#include <TColStd_HSequenceOfReal.hxx>
21 #include <ShapeExtend.hxx>
22 #include <TopoDS_Edge.hxx>
23 #include <TopoDS_Face.hxx>
24 #include <Geom_Curve.hxx>
25 #include <Geom2d_Curve.hxx>
26 #include <ShapeUpgrade_SplitCurve3d.hxx>
27 #include <ShapeUpgrade_SplitCurve2d.hxx>
28
29 //=======================================================================
30 //function : ShapeUpgrade_FixSmallCurves
31 //purpose  : 
32 //=======================================================================
33
34 ShapeUpgrade_FixSmallCurves::ShapeUpgrade_FixSmallCurves()
35 {
36   myStatus = ShapeExtend::EncodeStatus ( ShapeExtend_OK );
37 }
38 //=======================================================================
39 //function : Init
40 //purpose  : 
41 //=======================================================================
42
43 void ShapeUpgrade_FixSmallCurves::Init(const TopoDS_Edge& theEdge,const TopoDS_Face& theFace) 
44 {
45   myEdge = theEdge;
46   myFace = theFace;
47 }
48
49
50 //=======================================================================
51 //function : Perform
52 //purpose  : 
53 //=======================================================================
54
55 Standard_Boolean ShapeUpgrade_FixSmallCurves::Approx(Handle(Geom_Curve)& /*Curve3d*/,
56                                                      Handle(Geom2d_Curve)& /*Curve2d*/,
57                                                      Handle(Geom2d_Curve)& /*Curve2dR*/, 
58                                                      Standard_Real& /*First*/,
59                                                      Standard_Real& /*Last*/) 
60 {
61   return Standard_False;
62 }
63
64 //=======================================================================
65 //function : SetSplitCurve3dTool
66 //purpose  : 
67 //=======================================================================
68
69 void ShapeUpgrade_FixSmallCurves::SetSplitCurve3dTool(const Handle(ShapeUpgrade_SplitCurve3d)& splitCurve3dTool)
70 {
71   mySplitCurve3dTool = splitCurve3dTool;
72 }
73
74 //=======================================================================
75 //function : SetSplitCurve2dTool
76 //purpose  : 
77 //=======================================================================
78
79 void ShapeUpgrade_FixSmallCurves::SetSplitCurve2dTool(const Handle(ShapeUpgrade_SplitCurve2d)& splitCurve2dTool)
80 {
81   mySplitCurve2dTool = splitCurve2dTool;
82 }
83
84 //=======================================================================
85 //function : GetSplitCurve3dTool
86 //purpose  : 
87 //=======================================================================
88
89 Handle(ShapeUpgrade_SplitCurve3d) ShapeUpgrade_FixSmallCurves::GetSplitCurve3dTool() const
90 {
91   return mySplitCurve3dTool;
92 }
93
94 //=======================================================================
95 //function : GetSplitCurve2dTool
96 //purpose  : 
97 //=======================================================================
98
99 Handle(ShapeUpgrade_SplitCurve2d) ShapeUpgrade_FixSmallCurves::GetSplitCurve2dTool() const
100 {
101   return mySplitCurve2dTool;
102 }
103 //=======================================================================
104 //function : Status
105 //purpose  : 
106 //=======================================================================
107
108  Standard_Boolean ShapeUpgrade_FixSmallCurves::Status(const ShapeExtend_Status status) const
109 {
110   return ShapeExtend::DecodeStatus ( myStatus, status );
111 }