File indexing completed on 2026-09-15 09:15:03
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _BRepExtrema_ExtPC_HeaderFile
0015 #define _BRepExtrema_ExtPC_HeaderFile
0016
0017 #include <Extrema_ExtPC.hxx>
0018 #include <BRepAdaptor_Curve.hxx>
0019 #include <Standard_DefineAlloc.hxx>
0020
0021 class TopoDS_Vertex;
0022 class TopoDS_Edge;
0023
0024 class BRepExtrema_ExtPC
0025 {
0026 public:
0027 DEFINE_STANDARD_ALLOC
0028
0029 BRepExtrema_ExtPC() = default;
0030
0031
0032 Standard_EXPORT BRepExtrema_ExtPC(const TopoDS_Vertex& V, const TopoDS_Edge& E);
0033
0034 Standard_EXPORT void Initialize(const TopoDS_Edge& E);
0035
0036 Standard_EXPORT void Perform(const TopoDS_Vertex& V);
0037
0038
0039 bool IsDone() const { return myExtPC.IsDone(); }
0040
0041
0042 int NbExt() const { return myExtPC.NbExt(); }
0043
0044
0045 bool IsMin(const int N) const { return myExtPC.IsMin(N); }
0046
0047
0048 double SquareDistance(const int N) const { return myExtPC.SquareDistance(N); }
0049
0050
0051 double Parameter(const int N) const { return myExtPC.Point(N).Parameter(); }
0052
0053
0054 gp_Pnt Point(const int N) const { return myExtPC.Point(N).Value(); }
0055
0056
0057
0058
0059
0060
0061 void TrimmedSquareDistances(double& dist1, double& dist2, gp_Pnt& pnt1, gp_Pnt& pnt2) const
0062 {
0063 myExtPC.TrimmedSquareDistances(dist1, dist2, pnt1, pnt2);
0064 }
0065
0066 private:
0067 Extrema_ExtPC myExtPC;
0068 occ::handle<BRepAdaptor_Curve> myHC;
0069 };
0070
0071 #endif