1 // Created on: 1993-11-30
2 // Created by: Isabelle GRIGNON
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
6 // The content of this file is subject to the Open CASCADE Technology Public
7 // License Version 6.5 (the "License"). You may not use the content of this file
8 // except in compliance with the License. Please obtain a copy of the License
9 // at http://www.opencascade.org and read it completely before using this file.
11 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 // The Original Code and all software distributed under the License is
15 // distributed on an "AS IS" basis, without warranty of any kind, and the
16 // Initial Developer hereby disclaims all such warranties, including without
17 // limitation, any warranties of merchantability, fitness for a particular
18 // purpose or non-infringement. Please see the License for the specific terms
19 // and conditions governing the rights and limitations under the License.
23 //=======================================================================
24 //function : SetVertex
26 //=======================================================================
28 inline void ChFiDS_CommonPoint::SetVertex(const TopoDS_Vertex& V)
30 isvtx = Standard_True;
35 //=======================================================================
38 //=======================================================================
40 inline void ChFiDS_CommonPoint::SetPoint(const gp_Pnt& Point)
45 //=======================================================================
46 //function : SetVector
48 //=======================================================================
50 inline void ChFiDS_CommonPoint::SetVector(const gp_Vec& Vector)
52 hasvector = Standard_True;
56 //=======================================================================
57 //function : SetTolerance
59 // PMN : 30/09/1997 : On se contente d'updater la tolerance.
60 //=======================================================================
62 inline void ChFiDS_CommonPoint::SetTolerance(const Standard_Real Tol)
64 if (Tol>tol) tol = Tol;
68 //=======================================================================
69 //function : Tolerance
71 //=======================================================================
73 inline Standard_Real ChFiDS_CommonPoint::Tolerance()const
79 //=======================================================================
82 //=======================================================================
84 inline Standard_Boolean ChFiDS_CommonPoint::IsVertex()const
90 //=======================================================================
93 //=======================================================================
95 inline const TopoDS_Vertex& ChFiDS_CommonPoint::Vertex()const
97 if (!isvtx) {Standard_DomainError::Raise();}
101 //=======================================================================
104 //=======================================================================
106 inline const gp_Pnt& ChFiDS_CommonPoint::Point()const
111 //=======================================================================
112 //function : HasVector
114 //=======================================================================
116 inline Standard_Boolean ChFiDS_CommonPoint::HasVector()const
121 //=======================================================================
124 //=======================================================================
126 inline const gp_Vec& ChFiDS_CommonPoint::Vector()const
129 Standard_DomainError::Raise("ChFiDS_CommonPoint::Vector");
134 //=======================================================================
137 //=======================================================================
139 inline Standard_Boolean ChFiDS_CommonPoint::IsOnArc()const