0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / BRepBlend / BRepBlend_Extremity.lxx
CommitLineData
b311480e 1// Copyright (c) 1995-1999 Matra Datavision
973c2be1 2// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
b311480e 5//
d5f74e42 6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
b311480e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
b311480e 14
7fd59977 15#include <Standard_DomainError.hxx>
16
04f7bd75 17inline const gp_Pnt& BRepBlend_Extremity::Value () const
7fd59977 18{
19 return pt;
20}
21
04f7bd75 22inline void BRepBlend_Extremity::SetTangent(const gp_Vec& Tangent)
7fd59977 23{
24 hastang = Standard_True;
25 tang = Tangent;
26}
27
04f7bd75 28inline Standard_Boolean BRepBlend_Extremity::HasTangent () const
7fd59977 29{
30 return hastang;
31}
32
04f7bd75 33inline const gp_Vec& BRepBlend_Extremity::Tangent () const
7fd59977 34{
9775fa61 35 if (!hastang) {throw Standard_DomainError();}
7fd59977 36 return tang;
37}
38
04f7bd75 39inline void BRepBlend_Extremity::Parameters(Standard_Real& U,
7fd59977 40 Standard_Real& V) const
41{
42 U = u;
43 V = v;
44}
45
04f7bd75 46inline Standard_Real BRepBlend_Extremity::Tolerance() const
7fd59977 47{
48 return tol;
49}
50
51
04f7bd75 52inline Standard_Boolean BRepBlend_Extremity::IsVertex() const
7fd59977 53{
54 return isvtx;
55}
56
57
857ffd5e 58inline const Handle(Adaptor3d_HVertex)& BRepBlend_Extremity::Vertex () const
7fd59977 59{
9775fa61 60 if (!isvtx) {throw Standard_DomainError();}
7fd59977 61 return vtx;
62}
63
04f7bd75 64inline Standard_Integer BRepBlend_Extremity::NbPointOnRst () const
7fd59977 65{
66 return seqpt.Length();
67}
68
04f7bd75 69inline const BRepBlend_PointOnRst& BRepBlend_Extremity::PointOnRst
7fd59977 70 (const Standard_Integer Index) const
71{
72 return seqpt(Index);
73}
74
04f7bd75 75inline Standard_Real BRepBlend_Extremity::Parameter() const
7fd59977 76
77{
78 return u;
79}
80
04f7bd75 81inline Standard_Real BRepBlend_Extremity::ParameterOnGuide() const
7fd59977 82
83{
84 return param;
85}
86