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()
34 traarc (TopAbs_FORWARD),
35 isonarc(Standard_False),
36 isvtx (Standard_False),
37 hasvector (Standard_False)
42 //=======================================================================
45 //=======================================================================
47 void ChFiDS_CommonPoint::Reset()
50 isvtx = Standard_False;
51 isonarc = Standard_False;
52 hasvector = Standard_False;
56 //=======================================================================
59 // 30/09/1997 : PMN On n'ecrabouille plus la tolerance
60 //=======================================================================
62 void ChFiDS_CommonPoint::SetArc(const Standard_Real Tol,
64 const Standard_Real Param,
65 const TopAbs_Orientation TArc)
67 isonarc = Standard_True;
68 if (Tol > tol) tol = Tol;
74 //=======================================================================
75 //function : SetParameter
77 //=======================================================================
79 void ChFiDS_CommonPoint::SetParameter(const Standard_Real Param)
84 //=======================================================================
87 //=======================================================================
89 const TopoDS_Edge& ChFiDS_CommonPoint::Arc()const
92 throw Standard_DomainError("CommonPoint not on Arc");
98 //=======================================================================
99 //function : TransitionOnArc
101 //=======================================================================
103 TopAbs_Orientation ChFiDS_CommonPoint::TransitionOnArc()const
106 throw Standard_DomainError("CommonPoint not on Arc");
112 //=======================================================================
113 //function : ParameterOnArc
115 //=======================================================================
117 Standard_Real ChFiDS_CommonPoint::ParameterOnArc()const
120 throw Standard_DomainError("CommonPoint not on Arc");
125 //=======================================================================
126 //function : Parameter
128 //=======================================================================
130 Standard_Real ChFiDS_CommonPoint::Parameter()const