File indexing completed on 2025-01-18 10:03:05
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _BOPTools_AlgoTools2D_HeaderFile
0016 #define _BOPTools_AlgoTools2D_HeaderFile
0017
0018 #include <Standard.hxx>
0019 #include <Standard_DefineAlloc.hxx>
0020 #include <Standard_Handle.hxx>
0021
0022 #include <Standard_Boolean.hxx>
0023 #include <Standard_Real.hxx>
0024 #include <Standard_Integer.hxx>
0025 class TopoDS_Edge;
0026 class TopoDS_Face;
0027 class gp_Vec;
0028 class Geom2d_Curve;
0029 class Geom_Curve;
0030 class BRepAdaptor_Surface;
0031 class IntTools_Context;
0032
0033
0034
0035
0036
0037
0038 class BOPTools_AlgoTools2D
0039 {
0040 public:
0041
0042 DEFINE_STANDARD_ALLOC
0043
0044
0045
0046
0047 Standard_EXPORT static void BuildPCurveForEdgeOnFace(const TopoDS_Edge& aE,
0048 const TopoDS_Face& aF,
0049 const Handle(IntTools_Context)& theContext = Handle(IntTools_Context)());
0050
0051
0052 Standard_EXPORT static Standard_Boolean EdgeTangent(const TopoDS_Edge& anE,
0053 const Standard_Real aT,
0054 gp_Vec& Tau);
0055
0056
0057
0058
0059
0060
0061
0062 Standard_EXPORT static void PointOnSurface(const TopoDS_Edge& aE,
0063 const TopoDS_Face& aF,
0064 const Standard_Real aT,
0065 Standard_Real& U,
0066 Standard_Real& V,
0067 const Handle(IntTools_Context)& theContext = Handle(IntTools_Context)());
0068
0069
0070
0071
0072
0073
0074 Standard_EXPORT static void CurveOnSurface(const TopoDS_Edge& aE,
0075 const TopoDS_Face& aF,
0076 Handle(Geom2d_Curve)& aC,
0077 Standard_Real& aToler,
0078 const Handle(IntTools_Context)& theContext = Handle(IntTools_Context)());
0079
0080
0081
0082
0083
0084
0085
0086 Standard_EXPORT static void CurveOnSurface(const TopoDS_Edge& aE,
0087 const TopoDS_Face& aF,
0088 Handle(Geom2d_Curve)& aC,
0089 Standard_Real& aFirst,
0090 Standard_Real& aLast,
0091 Standard_Real& aToler,
0092 const Handle(IntTools_Context)& theContext = Handle(IntTools_Context)());
0093
0094
0095
0096
0097
0098
0099 Standard_EXPORT static Standard_Boolean HasCurveOnSurface(const TopoDS_Edge& aE,
0100 const TopoDS_Face& aF,
0101 Handle(Geom2d_Curve)& aC,
0102 Standard_Real& aFirst,
0103 Standard_Real& aLast,
0104 Standard_Real& aToler);
0105
0106
0107
0108
0109 Standard_EXPORT static Standard_Boolean HasCurveOnSurface(const TopoDS_Edge& aE,
0110 const TopoDS_Face& aF);
0111
0112
0113
0114 Standard_EXPORT static void AdjustPCurveOnFace(const TopoDS_Face& theF,
0115 const Handle(Geom_Curve)& theC3D,
0116 const Handle(Geom2d_Curve)& theC2D,
0117 Handle(Geom2d_Curve)& theC2DA,
0118 const Handle(IntTools_Context)& theContext = Handle(IntTools_Context)());
0119
0120
0121
0122
0123 Standard_EXPORT static void AdjustPCurveOnFace(const TopoDS_Face& theF,
0124 const Standard_Real theFirst,
0125 const Standard_Real theLast,
0126 const Handle(Geom2d_Curve)& theC2D,
0127 Handle(Geom2d_Curve)& theC2DA,
0128 const Handle(IntTools_Context)& theContext = Handle(IntTools_Context)());
0129
0130
0131
0132 Standard_EXPORT static void AdjustPCurveOnSurf(const BRepAdaptor_Surface& aF,
0133 const Standard_Real aT1,
0134 const Standard_Real aT2,
0135 const Handle(Geom2d_Curve)& aC2D,
0136 Handle(Geom2d_Curve)& aC2DA);
0137
0138
0139 Standard_EXPORT static Standard_Real IntermediatePoint(const Standard_Real aFirst,
0140 const Standard_Real aLast);
0141
0142
0143 Standard_EXPORT static Standard_Real IntermediatePoint(const TopoDS_Edge& anE);
0144
0145
0146
0147
0148
0149
0150 Standard_EXPORT static void Make2D(const TopoDS_Edge& aE,
0151 const TopoDS_Face& aF,
0152 Handle(Geom2d_Curve)& aC,
0153 Standard_Real& aFirst,
0154 Standard_Real& aLast,
0155 Standard_Real& aToler,
0156 const Handle(IntTools_Context)& theContext = Handle(IntTools_Context)());
0157
0158
0159
0160
0161
0162 Standard_EXPORT static void MakePCurveOnFace(const TopoDS_Face& aF,
0163 const Handle(Geom_Curve)& C3D,
0164 Handle(Geom2d_Curve)& aC,
0165 Standard_Real& aToler,
0166 const Handle(IntTools_Context)& theContext = Handle(IntTools_Context)());
0167
0168
0169
0170
0171
0172
0173 Standard_EXPORT static void MakePCurveOnFace(const TopoDS_Face& aF,
0174 const Handle(Geom_Curve)& C3D,
0175 const Standard_Real aT1,
0176 const Standard_Real aT2,
0177 Handle(Geom2d_Curve)& aC,
0178 Standard_Real& aToler,
0179 const Handle(IntTools_Context)& theContext = Handle(IntTools_Context)());
0180
0181
0182
0183
0184 Standard_EXPORT static Standard_Integer AttachExistingPCurve(const TopoDS_Edge& aEold,
0185 const TopoDS_Edge& aEnew,
0186 const TopoDS_Face& aF,
0187 const Handle(IntTools_Context)& aCtx);
0188
0189
0190
0191
0192
0193
0194
0195
0196
0197
0198
0199
0200 Standard_EXPORT static void IsEdgeIsoline(const TopoDS_Edge& theE,
0201 const TopoDS_Face& theF,
0202 Standard_Boolean& isTheUIso,
0203 Standard_Boolean& isTheVIso);
0204
0205 };
0206
0207 #endif