1 // File: BRepExtrema_ExtPC.cxx
2 // Created: Wed Dec 15 16:48:53 1993
3 // Author: Christophe MARION
5 #include <BRepExtrema_ExtPC.hxx>
7 #include <BRep_Tool.hxx>
8 //#include <StdFail_NotDone.hxx>
9 //#include <Standard_Failure.hxx>
10 #include <BRepAdaptor_Curve.hxx>
11 #include <BRepAdaptor_HCurve.hxx>
14 //=======================================================================
15 //function : BRepExtrema_ExtPC
17 //=======================================================================
19 BRepExtrema_ExtPC::BRepExtrema_ExtPC(const TopoDS_Vertex& V, const TopoDS_Edge& E)
25 //=======================================================================
26 //function : Initialize
28 //=======================================================================
30 void BRepExtrema_ExtPC::Initialize(const TopoDS_Edge& E)
33 BRepAdaptor_Curve Curv(E);
34 myHC = new BRepAdaptor_HCurve(Curv);
35 BRep_Tool::Range(E,U1,U2);
36 myExtPC.Initialize(myHC->Curve(),U1,U2);
39 //=======================================================================
42 //=======================================================================
44 void BRepExtrema_ExtPC::Perform(const TopoDS_Vertex& V)
46 gp_Pnt P = BRep_Tool::Pnt(V);