1 // Created on: 1992-05-06
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1992-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.
17 inline IntPatch_Point::IntPatch_Point ()
18 : para(0.0), tol(0.0), tgt(Standard_False), mult(Standard_False),
19 onS1(Standard_False), vtxonS1(Standard_False), prm1(0.0),
20 onS2(Standard_False), vtxonS2(Standard_False), prm2(0.0)
25 inline void IntPatch_Point::SetValue (const gp_Pnt& Pt)
30 //=======================================================================
31 ////function : SetValue
33 //=======================================================================
34 inline void IntPatch_Point::SetValue(const IntSurf_PntOn2S& thePOn2S)
39 inline void IntPatch_Point::SetTolerance (const Standard_Real Tol)
45 inline void IntPatch_Point::SetParameters (const Standard_Real U1,
46 const Standard_Real V1,
47 const Standard_Real U2,
48 const Standard_Real V2)
50 pt.SetValue(U1,V1,U2,V2);
54 inline void IntPatch_Point::SetParameter (const Standard_Real Para)
60 inline void IntPatch_Point::SetMultiple (const Standard_Boolean IsMult)
66 inline const gp_Pnt& IntPatch_Point::Value () const
72 inline Standard_Real IntPatch_Point::Tolerance () const
78 inline Standard_Real IntPatch_Point::ParameterOnLine () const
84 inline Standard_Boolean IntPatch_Point::IsTangencyPoint () const
90 inline void IntPatch_Point::ParametersOnS1 (Standard_Real& U1, Standard_Real& V1) const
92 pt.ParametersOnS1(U1,V1);
96 inline void IntPatch_Point::ParametersOnS2 (Standard_Real& U2, Standard_Real& V2) const
98 pt.ParametersOnS2(U2,V2);
102 inline Standard_Boolean IntPatch_Point::IsMultiple () const
108 inline Standard_Boolean IntPatch_Point::IsOnDomS1 () const
114 inline Standard_Boolean IntPatch_Point::IsVertexOnS1 () const
120 inline const Handle(Adaptor3d_HVertex)& IntPatch_Point::VertexOnS1 () const
122 if (!vtxonS1) {throw Standard_DomainError();}
127 inline const Handle(Adaptor2d_HCurve2d)& IntPatch_Point::ArcOnS1 () const
129 if (!onS1) {throw Standard_DomainError();}
134 inline const IntSurf_Transition& IntPatch_Point::TransitionLineArc1 () const
136 if (!onS1) {throw Standard_DomainError();}
141 inline const IntSurf_Transition& IntPatch_Point::TransitionOnS1 () const
143 if (!onS1) {throw Standard_DomainError();}
148 inline Standard_Real IntPatch_Point::ParameterOnArc1 () const
150 if (!onS1) {throw Standard_DomainError();}
155 inline Standard_Boolean IntPatch_Point::IsOnDomS2 () const
161 inline Standard_Boolean IntPatch_Point::IsVertexOnS2 () const
167 inline const Handle(Adaptor3d_HVertex)& IntPatch_Point::VertexOnS2 () const
169 if (!vtxonS2) {throw Standard_DomainError();}
174 inline const Handle(Adaptor2d_HCurve2d)& IntPatch_Point::ArcOnS2 () const
176 if (!onS2) {throw Standard_DomainError();}
181 inline const IntSurf_Transition& IntPatch_Point::TransitionLineArc2 () const
183 if (!onS2) {throw Standard_DomainError();}
188 inline const IntSurf_Transition& IntPatch_Point::TransitionOnS2 () const
190 if (!onS2) {throw Standard_DomainError();}
195 inline Standard_Real IntPatch_Point::ParameterOnArc2 () const
197 if (!onS2) {throw Standard_DomainError();}
202 inline const IntSurf_PntOn2S& IntPatch_Point::PntOn2S() const
208 inline void IntPatch_Point::Parameters(Standard_Real& U1, Standard_Real& V1,
209 Standard_Real& U2, Standard_Real& V2) const
211 pt.Parameters(U1,V1,U2,V2);