1 // Created on: 1993-11-10
2 // Created by: Jean Yves LEBEY
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
18 #include <gp_Pnt2d.hxx>
19 #include <IntSurf_PntOn2S.hxx>
20 #include <TopOpeBRep_WPointInter.hxx>
22 //=======================================================================
23 //function : WPointInter
25 //=======================================================================
26 TopOpeBRep_WPointInter::TopOpeBRep_WPointInter()
29 //=======================================================================
32 //=======================================================================
34 void TopOpeBRep_WPointInter::Set(const IntSurf_PntOn2S& P)
36 myPP2S = (IntSurf_PntOn2S*)&P;
39 //=======================================================================
40 //function : ParametersOnS1
42 //=======================================================================
44 void TopOpeBRep_WPointInter::ParametersOnS1
45 (Standard_Real& U1, Standard_Real& V1) const
47 myPP2S->ParametersOnS1(U1,V1);
50 //=======================================================================
51 //function : ParametersOnS2
53 //=======================================================================
55 void TopOpeBRep_WPointInter::ParametersOnS2
56 (Standard_Real& U2, Standard_Real& V2) const
58 myPP2S->ParametersOnS2(U2,V2);
61 //=======================================================================
62 //function : Parameters
64 //=======================================================================
66 void TopOpeBRep_WPointInter::Parameters
67 (Standard_Real& U1, Standard_Real& V1,
68 Standard_Real& U2, Standard_Real& V2) const
70 myPP2S->Parameters(U1,V1,U2,V2);
73 //=======================================================================
74 //function : ValueOnS1
76 //=======================================================================
78 gp_Pnt2d TopOpeBRep_WPointInter::ValueOnS1() const
81 myPP2S->ParametersOnS1(u,v);
85 //=======================================================================
86 //function : ValueOnS2
88 //=======================================================================
90 gp_Pnt2d TopOpeBRep_WPointInter::ValueOnS2() const
93 myPP2S->ParametersOnS2(u,v);
97 //=======================================================================
100 //=======================================================================
102 const gp_Pnt& TopOpeBRep_WPointInter::Value() const
104 return myPP2S->Value();
107 TopOpeBRep_PPntOn2S TopOpeBRep_WPointInter::PPntOn2SDummy() const { return myPP2S; }