Warning, file /include/opencascade/BRepExtrema_ExtCC.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _BRepExtrema_ExtCC_HeaderFile
0015 #define _BRepExtrema_ExtCC_HeaderFile
0016
0017 #include <Extrema_ExtCC.hxx>
0018 #include <BRepAdaptor_Curve.hxx>
0019 #include <Standard_DefineAlloc.hxx>
0020
0021 class TopoDS_Edge;
0022 class gp_Pnt;
0023
0024 class BRepExtrema_ExtCC
0025 {
0026 public:
0027 DEFINE_STANDARD_ALLOC
0028
0029 BRepExtrema_ExtCC() = default;
0030
0031
0032 Standard_EXPORT BRepExtrema_ExtCC(const TopoDS_Edge& E1, const TopoDS_Edge& E2);
0033
0034 Standard_EXPORT void Initialize(const TopoDS_Edge& E2);
0035
0036 Standard_EXPORT void Perform(const TopoDS_Edge& E1);
0037
0038
0039 bool IsDone() const { return myExtCC.IsDone(); }
0040
0041
0042 int NbExt() const { return myExtCC.NbExt(); }
0043
0044
0045 bool IsParallel() const { return myExtCC.IsParallel(); }
0046
0047
0048 double SquareDistance(const int N) const { return myExtCC.SquareDistance(N); }
0049
0050
0051 Standard_EXPORT double ParameterOnE1(const int N) const;
0052
0053 Standard_EXPORT gp_Pnt PointOnE1(const int N) const;
0054
0055 Standard_EXPORT double ParameterOnE2(const int N) const;
0056
0057 Standard_EXPORT gp_Pnt PointOnE2(const int N) const;
0058
0059
0060
0061
0062 Standard_EXPORT void TrimmedSquareDistances(double& dist11,
0063 double& distP12,
0064 double& distP21,
0065 double& distP22,
0066 gp_Pnt& P11,
0067 gp_Pnt& P12,
0068 gp_Pnt& P21,
0069 gp_Pnt& P22) const;
0070
0071 private:
0072 Extrema_ExtCC myExtCC;
0073 occ::handle<BRepAdaptor_Curve> myHC;
0074 };
0075
0076 #endif