File indexing completed on 2026-11-23 10:18:33
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 class BOPTools_AlgoTools2D
0037 {
0038 public:
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042
0043
0044 Standard_EXPORT static void BuildPCurveForEdgeOnFace(
0045 const TopoDS_Edge& aE,
0046 const TopoDS_Face& aF,
0047 const occ::handle<IntTools_Context>& theContext = occ::handle<IntTools_Context>());
0048
0049
0050 Standard_EXPORT static bool EdgeTangent(const TopoDS_Edge& anE, const double aT, gp_Vec& Tau);
0051
0052
0053
0054
0055
0056
0057
0058 Standard_EXPORT static void PointOnSurface(
0059 const TopoDS_Edge& aE,
0060 const TopoDS_Face& aF,
0061 const double aT,
0062 double& U,
0063 double& V,
0064 const occ::handle<IntTools_Context>& theContext = occ::handle<IntTools_Context>());
0065
0066
0067
0068
0069
0070
0071 Standard_EXPORT static void CurveOnSurface(
0072 const TopoDS_Edge& aE,
0073 const TopoDS_Face& aF,
0074 occ::handle<Geom2d_Curve>& aC,
0075 double& aToler,
0076 const occ::handle<IntTools_Context>& theContext = occ::handle<IntTools_Context>());
0077
0078
0079
0080
0081
0082
0083
0084 Standard_EXPORT static void CurveOnSurface(
0085 const TopoDS_Edge& aE,
0086 const TopoDS_Face& aF,
0087 occ::handle<Geom2d_Curve>& aC,
0088 double& aFirst,
0089 double& aLast,
0090 double& aToler,
0091 const occ::handle<IntTools_Context>& theContext = occ::handle<IntTools_Context>());
0092
0093
0094
0095
0096
0097
0098 Standard_EXPORT static bool HasCurveOnSurface(const TopoDS_Edge& aE,
0099 const TopoDS_Face& aF,
0100 occ::handle<Geom2d_Curve>& aC,
0101 double& aFirst,
0102 double& aLast,
0103 double& aToler);
0104
0105
0106
0107
0108 Standard_EXPORT static bool HasCurveOnSurface(const TopoDS_Edge& aE, const TopoDS_Face& aF);
0109
0110
0111
0112 Standard_EXPORT static void AdjustPCurveOnFace(
0113 const TopoDS_Face& theF,
0114 const occ::handle<Geom_Curve>& theC3D,
0115 const occ::handle<Geom2d_Curve>& theC2D,
0116 occ::handle<Geom2d_Curve>& theC2DA,
0117 const occ::handle<IntTools_Context>& theContext = occ::handle<IntTools_Context>());
0118
0119
0120
0121
0122 Standard_EXPORT static void AdjustPCurveOnFace(
0123 const TopoDS_Face& theF,
0124 const double theFirst,
0125 const double theLast,
0126 const occ::handle<Geom2d_Curve>& theC2D,
0127 occ::handle<Geom2d_Curve>& theC2DA,
0128 const occ::handle<IntTools_Context>& theContext = occ::handle<IntTools_Context>());
0129
0130
0131
0132 Standard_EXPORT static void AdjustPCurveOnSurf(const BRepAdaptor_Surface& aF,
0133 const double aT1,
0134 const double aT2,
0135 const occ::handle<Geom2d_Curve>& aC2D,
0136 occ::handle<Geom2d_Curve>& aC2DA);
0137
0138
0139 Standard_EXPORT static double IntermediatePoint(const double aFirst, const double aLast);
0140
0141
0142 Standard_EXPORT static double IntermediatePoint(const TopoDS_Edge& anE);
0143
0144
0145
0146
0147
0148
0149 Standard_EXPORT static void Make2D(
0150 const TopoDS_Edge& aE,
0151 const TopoDS_Face& aF,
0152 occ::handle<Geom2d_Curve>& aC,
0153 double& aFirst,
0154 double& aLast,
0155 double& aToler,
0156 const occ::handle<IntTools_Context>& theContext = occ::handle<IntTools_Context>());
0157
0158
0159
0160
0161
0162 Standard_EXPORT static void MakePCurveOnFace(
0163 const TopoDS_Face& aF,
0164 const occ::handle<Geom_Curve>& C3D,
0165 occ::handle<Geom2d_Curve>& aC,
0166 double& aToler,
0167 const occ::handle<IntTools_Context>& theContext = occ::handle<IntTools_Context>());
0168
0169
0170
0171
0172
0173
0174 Standard_EXPORT static void MakePCurveOnFace(
0175 const TopoDS_Face& aF,
0176 const occ::handle<Geom_Curve>& C3D,
0177 const double aT1,
0178 const double aT2,
0179 occ::handle<Geom2d_Curve>& aC,
0180 double& aToler,
0181 const occ::handle<IntTools_Context>& theContext = occ::handle<IntTools_Context>());
0182
0183
0184
0185
0186 Standard_EXPORT static int AttachExistingPCurve(const TopoDS_Edge& aEold,
0187 const TopoDS_Edge& aEnew,
0188 const TopoDS_Face& aF,
0189 const occ::handle<IntTools_Context>& aCtx);
0190
0191
0192
0193
0194
0195
0196
0197
0198
0199
0200
0201
0202 Standard_EXPORT static void IsEdgeIsoline(const TopoDS_Edge& theE,
0203 const TopoDS_Face& theF,
0204 bool& isTheUIso,
0205 bool& isTheVIso);
0206 };
0207
0208 #endif