File indexing completed on 2025-01-18 10:04:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _ShapeUpgrade_EdgeDivide_HeaderFile
0017 #define _ShapeUpgrade_EdgeDivide_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <TopoDS_Face.hxx>
0023 #include <TColStd_HSequenceOfReal.hxx>
0024 #include <ShapeUpgrade_Tool.hxx>
0025 class ShapeUpgrade_SplitCurve3d;
0026 class ShapeUpgrade_SplitCurve2d;
0027 class TopoDS_Edge;
0028
0029
0030 class ShapeUpgrade_EdgeDivide;
0031 DEFINE_STANDARD_HANDLE(ShapeUpgrade_EdgeDivide, ShapeUpgrade_Tool)
0032
0033
0034 class ShapeUpgrade_EdgeDivide : public ShapeUpgrade_Tool
0035 {
0036
0037 public:
0038
0039
0040
0041 Standard_EXPORT ShapeUpgrade_EdgeDivide();
0042
0043 Standard_EXPORT void Clear();
0044
0045
0046 void SetFace (const TopoDS_Face& F);
0047
0048 Standard_EXPORT virtual Standard_Boolean Compute (const TopoDS_Edge& E);
0049
0050 Standard_Boolean HasCurve2d() const;
0051
0052 Standard_Boolean HasCurve3d() const;
0053
0054 Handle(TColStd_HSequenceOfReal) Knots2d() const;
0055
0056 Handle(TColStd_HSequenceOfReal) Knots3d() const;
0057
0058
0059 Standard_EXPORT void SetSplitCurve2dTool (const Handle(ShapeUpgrade_SplitCurve2d)& splitCurve2dTool);
0060
0061
0062 Standard_EXPORT void SetSplitCurve3dTool (const Handle(ShapeUpgrade_SplitCurve3d)& splitCurve3dTool);
0063
0064
0065 Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve2d) GetSplitCurve2dTool() const;
0066
0067
0068 Standard_EXPORT virtual Handle(ShapeUpgrade_SplitCurve3d) GetSplitCurve3dTool() const;
0069
0070
0071
0072
0073 DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_EdgeDivide,ShapeUpgrade_Tool)
0074
0075 protected:
0076
0077
0078 TopoDS_Face myFace;
0079 Standard_Boolean myHasCurve2d;
0080 Standard_Boolean myHasCurve3d;
0081 Handle(TColStd_HSequenceOfReal) myKnots2d;
0082 Handle(TColStd_HSequenceOfReal) myKnots3d;
0083
0084
0085 private:
0086
0087
0088 Handle(ShapeUpgrade_SplitCurve3d) mySplitCurve3dTool;
0089 Handle(ShapeUpgrade_SplitCurve2d) mySplitCurve2dTool;
0090
0091
0092 };
0093
0094
0095 #include <ShapeUpgrade_EdgeDivide.lxx>
0096
0097
0098
0099
0100
0101 #endif