1 // Created on: 2000-06-07
2 // Created by: Galina KULIKOVA
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
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>
29 //=======================================================================
30 //function : ShapeUpgrade_FixSmallCurves
32 //=======================================================================
34 ShapeUpgrade_FixSmallCurves::ShapeUpgrade_FixSmallCurves()
36 myStatus = ShapeExtend::EncodeStatus ( ShapeExtend_OK );
38 //=======================================================================
41 //=======================================================================
43 void ShapeUpgrade_FixSmallCurves::Init(const TopoDS_Edge& theEdge,const TopoDS_Face& theFace)
50 //=======================================================================
53 //=======================================================================
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*/)
61 return Standard_False;
64 //=======================================================================
65 //function : SetSplitCurve3dTool
67 //=======================================================================
69 void ShapeUpgrade_FixSmallCurves::SetSplitCurve3dTool(const Handle(ShapeUpgrade_SplitCurve3d)& splitCurve3dTool)
71 mySplitCurve3dTool = splitCurve3dTool;
74 //=======================================================================
75 //function : SetSplitCurve2dTool
77 //=======================================================================
79 void ShapeUpgrade_FixSmallCurves::SetSplitCurve2dTool(const Handle(ShapeUpgrade_SplitCurve2d)& splitCurve2dTool)
81 mySplitCurve2dTool = splitCurve2dTool;
84 //=======================================================================
85 //function : GetSplitCurve3dTool
87 //=======================================================================
89 Handle(ShapeUpgrade_SplitCurve3d) ShapeUpgrade_FixSmallCurves::GetSplitCurve3dTool() const
91 return mySplitCurve3dTool;
94 //=======================================================================
95 //function : GetSplitCurve2dTool
97 //=======================================================================
99 Handle(ShapeUpgrade_SplitCurve2d) ShapeUpgrade_FixSmallCurves::GetSplitCurve2dTool() const
101 return mySplitCurve2dTool;
103 //=======================================================================
106 //=======================================================================
108 Standard_Boolean ShapeUpgrade_FixSmallCurves::Status(const ShapeExtend_Status status) const
110 return ShapeExtend::DecodeStatus ( myStatus, status );