1 // Created on: 1993-11-30
2 // Created by: Isabelle GRIGNON
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 <ChFiDS_CommonPoint.hxx>
21 #include <Standard_DomainError.hxx>
22 #include <Standard_TypeMismatch.hxx>
23 #include <TopoDS_Edge.hxx>
24 #include <TopoDS_Vertex.hxx>
26 //=======================================================================
27 //function : ChFiDS_CommonPoint
29 //=======================================================================
30 ChFiDS_CommonPoint::ChFiDS_CommonPoint() :
32 isonarc(Standard_False),
33 isvtx(Standard_False),
34 hasvector(Standard_False)
39 //=======================================================================
42 //=======================================================================
44 void ChFiDS_CommonPoint::Reset()
47 isvtx = Standard_False;
48 isonarc = Standard_False;
49 hasvector = Standard_False;
53 //=======================================================================
56 // 30/09/1997 : PMN On n'ecrabouille plus la tolerance
57 //=======================================================================
59 void ChFiDS_CommonPoint::SetArc(const Standard_Real Tol,
61 const Standard_Real Param,
62 const TopAbs_Orientation TArc)
64 isonarc = Standard_True;
65 if (Tol > tol) tol = Tol;
71 //=======================================================================
72 //function : SetParameter
74 //=======================================================================
76 void ChFiDS_CommonPoint::SetParameter(const Standard_Real Param)
81 //=======================================================================
84 //=======================================================================
86 const TopoDS_Edge& ChFiDS_CommonPoint::Arc()const
89 throw Standard_DomainError("CommonPoint not on Arc");
95 //=======================================================================
96 //function : TransitionOnArc
98 //=======================================================================
100 TopAbs_Orientation ChFiDS_CommonPoint::TransitionOnArc()const
103 throw Standard_DomainError("CommonPoint not on Arc");
109 //=======================================================================
110 //function : ParameterOnArc
112 //=======================================================================
114 Standard_Real ChFiDS_CommonPoint::ParameterOnArc()const
117 throw Standard_DomainError("CommonPoint not on Arc");
122 //=======================================================================
123 //function : Parameter
125 //=======================================================================
127 Standard_Real ChFiDS_CommonPoint::Parameter()const