Warning, /include/opencascade/BRepBlend_Extremity.lxx is written in an unsupported language. File is not indexed.
0001 // Copyright (c) 1995-1999 Matra Datavision
0002 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014
0015 #include <Standard_DomainError.hxx>
0016
0017 inline const gp_Pnt& BRepBlend_Extremity::Value () const
0018 {
0019 return pt;
0020 }
0021
0022 inline void BRepBlend_Extremity::SetTangent(const gp_Vec& Tangent)
0023 {
0024 hastang = Standard_True;
0025 tang = Tangent;
0026 }
0027
0028 inline Standard_Boolean BRepBlend_Extremity::HasTangent () const
0029 {
0030 return hastang;
0031 }
0032
0033 inline const gp_Vec& BRepBlend_Extremity::Tangent () const
0034 {
0035 if (!hastang) {throw Standard_DomainError();}
0036 return tang;
0037 }
0038
0039 inline void BRepBlend_Extremity::Parameters(Standard_Real& U,
0040 Standard_Real& V) const
0041 {
0042 U = u;
0043 V = v;
0044 }
0045
0046 inline Standard_Real BRepBlend_Extremity::Tolerance() const
0047 {
0048 return tol;
0049 }
0050
0051
0052 inline Standard_Boolean BRepBlend_Extremity::IsVertex() const
0053 {
0054 return isvtx;
0055 }
0056
0057
0058 inline const Handle(Adaptor3d_HVertex)& BRepBlend_Extremity::Vertex () const
0059 {
0060 if (!isvtx) {throw Standard_DomainError();}
0061 return vtx;
0062 }
0063
0064 inline Standard_Integer BRepBlend_Extremity::NbPointOnRst () const
0065 {
0066 return seqpt.Length();
0067 }
0068
0069 inline const BRepBlend_PointOnRst& BRepBlend_Extremity::PointOnRst
0070 (const Standard_Integer Index) const
0071 {
0072 return seqpt(Index);
0073 }
0074
0075 inline Standard_Real BRepBlend_Extremity::Parameter() const
0076
0077 {
0078 return u;
0079 }
0080
0081 inline Standard_Real BRepBlend_Extremity::ParameterOnGuide() const
0082
0083 {
0084 return param;
0085 }
0086