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.
17 //=======================================================================
18 //function : SetVertex
20 //=======================================================================
22 inline void ChFiDS_CommonPoint::SetVertex(const TopoDS_Vertex& V)
24 isvtx = Standard_True;
29 //=======================================================================
32 //=======================================================================
34 inline void ChFiDS_CommonPoint::SetPoint(const gp_Pnt& Point)
39 //=======================================================================
40 //function : SetVector
42 //=======================================================================
44 inline void ChFiDS_CommonPoint::SetVector(const gp_Vec& Vector)
46 hasvector = Standard_True;
50 //=======================================================================
51 //function : SetTolerance
53 // PMN : 30/09/1997 : On se contente d'updater la tolerance.
54 //=======================================================================
56 inline void ChFiDS_CommonPoint::SetTolerance(const Standard_Real Tol)
58 if (Tol>tol) tol = Tol;
62 //=======================================================================
63 //function : Tolerance
65 //=======================================================================
67 inline Standard_Real ChFiDS_CommonPoint::Tolerance()const
73 //=======================================================================
76 //=======================================================================
78 inline Standard_Boolean ChFiDS_CommonPoint::IsVertex()const
84 //=======================================================================
87 //=======================================================================
89 inline const TopoDS_Vertex& ChFiDS_CommonPoint::Vertex()const
91 if (!isvtx) {Standard_DomainError::Raise();}
95 //=======================================================================
98 //=======================================================================
100 inline const gp_Pnt& ChFiDS_CommonPoint::Point()const
105 //=======================================================================
106 //function : HasVector
108 //=======================================================================
110 inline Standard_Boolean ChFiDS_CommonPoint::HasVector()const
115 //=======================================================================
118 //=======================================================================
120 inline const gp_Vec& ChFiDS_CommonPoint::Vector()const
123 Standard_DomainError::Raise("ChFiDS_CommonPoint::Vector");
128 //=======================================================================
131 //=======================================================================
133 inline Standard_Boolean ChFiDS_CommonPoint::IsOnArc()const