blob: a95d8f580a65b8998c9064137d654ec7fb9fc21c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
// File: ShapeUpgrade_FixSmallCurves.cxx
// Created: Wed Jun 7 17:09:05 2000
// Author: Galina KULIKOVA
// <gka@zamox.nnov.matra-dtv.fr>
#include <ShapeUpgrade_FixSmallCurves.ixx>
//#include <TColGeom_HArray1OfCurve.hxx>
//#include <TColStd_HSequenceOfReal.hxx>
#//include <TColGeom2d_HArray1OfCurve.hxx>
//#include <TColStd_HSequenceOfReal.hxx>
#include <ShapeExtend.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Face.hxx>
#include <Geom_Curve.hxx>
#include <Geom2d_Curve.hxx>
#include <ShapeUpgrade_SplitCurve3d.hxx>
#include <ShapeUpgrade_SplitCurve2d.hxx>
//=======================================================================
//function : ShapeUpgrade_FixSmallCurves
//purpose :
//=======================================================================
ShapeUpgrade_FixSmallCurves::ShapeUpgrade_FixSmallCurves()
{
myStatus = ShapeExtend::EncodeStatus ( ShapeExtend_OK );
}
//=======================================================================
//function : Init
//purpose :
//=======================================================================
void ShapeUpgrade_FixSmallCurves::Init(const TopoDS_Edge& theEdge,const TopoDS_Face& theFace)
{
myEdge = theEdge;
myFace = theFace;
}
//=======================================================================
//function : Perform
//purpose :
//=======================================================================
Standard_Boolean ShapeUpgrade_FixSmallCurves::Approx(Handle(Geom_Curve)& /*Curve3d*/,
Handle(Geom2d_Curve)& /*Curve2d*/,
Handle(Geom2d_Curve)& /*Curve2dR*/,
Standard_Real& /*First*/,
Standard_Real& /*Last*/)
{
return Standard_False;
}
//=======================================================================
//function : SetSplitCurve3dTool
//purpose :
//=======================================================================
void ShapeUpgrade_FixSmallCurves::SetSplitCurve3dTool(const Handle(ShapeUpgrade_SplitCurve3d)& splitCurve3dTool)
{
mySplitCurve3dTool = splitCurve3dTool;
}
//=======================================================================
//function : SetSplitCurve2dTool
//purpose :
//=======================================================================
void ShapeUpgrade_FixSmallCurves::SetSplitCurve2dTool(const Handle(ShapeUpgrade_SplitCurve2d)& splitCurve2dTool)
{
mySplitCurve2dTool = splitCurve2dTool;
}
//=======================================================================
//function : GetSplitCurve3dTool
//purpose :
//=======================================================================
Handle(ShapeUpgrade_SplitCurve3d) ShapeUpgrade_FixSmallCurves::GetSplitCurve3dTool() const
{
return mySplitCurve3dTool;
}
//=======================================================================
//function : GetSplitCurve2dTool
//purpose :
//=======================================================================
Handle(ShapeUpgrade_SplitCurve2d) ShapeUpgrade_FixSmallCurves::GetSplitCurve2dTool() const
{
return mySplitCurve2dTool;
}
//=======================================================================
//function : Status
//purpose :
//=======================================================================
Standard_Boolean ShapeUpgrade_FixSmallCurves::Status(const ShapeExtend_Status status) const
{
return ShapeExtend::DecodeStatus ( myStatus, status );
}
|