0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / CPnts / CPnts_UniformDeflection.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 <StdFail_NotDone.hxx>
16#include <Standard_OutOfRange.hxx>
17
18//=======================================================================
19//function : IsAllDone
20//purpose :
21//=======================================================================
22
23inline Standard_Boolean CPnts_UniformDeflection::IsAllDone () const
24{
25 return myDone;
26}
27
28//=======================================================================
29//function : Next
30//purpose :
31//=======================================================================
32
33inline void CPnts_UniformDeflection::Next()
34{
2d2b3d53 35 Standard_OutOfRange_Raise_if(myIPoint >= myNbPoints, "CPnts_UniformDeflection::Next() - no more points available");
7fd59977 36 myIPoint++;
37}
38
39//=======================================================================
40//function : Value
41//purpose :
42//=======================================================================
43
44inline Standard_Real CPnts_UniformDeflection::Value () const
45{
2d2b3d53 46 StdFail_NotDone_Raise_if (!myDone, "CPnts_UniformDeflection::Value() - no result");
7fd59977 47 return myParams[myIPoint + 1];
48}
49//=======================================================================
50//function : Point
51//purpose :
52//=======================================================================
53
54inline gp_Pnt CPnts_UniformDeflection::Point () const
55{
2d2b3d53 56 StdFail_NotDone_Raise_if (!myDone, "CPnts_UniformDeflection::Point() - no result");
7fd59977 57 return myPoints[myIPoint + 1];
58}