0024624: Lost word in license statement in source files
[occt.git] / src / PPoly / PPoly_Polygon3D.cxx
CommitLineData
b311480e 1// Copyright (c) 1998-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 <PPoly_Polygon3D.ixx>
16
17//=======================================================================
18//function :
19//purpose :
20//=======================================================================
21
22
23PPoly_Polygon3D::PPoly_Polygon3D(const Handle(PColgp_HArray1OfPnt)& Nodes,
24 const Standard_Real Defl) :
25 myDeflection(Defl),
26 myNodes(Nodes)
27{
28}
29
30//=======================================================================
31//function :
32//purpose :
33//=======================================================================
34
35
36PPoly_Polygon3D::PPoly_Polygon3D(const Handle(PColgp_HArray1OfPnt)& Nodes,
37 const Handle(PColStd_HArray1OfReal)& Param,
38 const Standard_Real Defl) :
39 myDeflection(Defl),
40 myNodes(Nodes),
41 myParameters(Param)
42{
43}
44
45//=======================================================================
46//function :
47//purpose :
48//=======================================================================
49
50
51Standard_Real PPoly_Polygon3D::Deflection() const
52{
53 return myDeflection;
54}
55
56//=======================================================================
57//function :
58//purpose :
59//=======================================================================
60
61
62void PPoly_Polygon3D::Deflection(const Standard_Real Defl)
63{
64 myDeflection = Defl;
65}
66
67//=======================================================================
68//function :
69//purpose :
70//=======================================================================
71
72
73Standard_Integer PPoly_Polygon3D::NbNodes() const
74{
75 return myNodes->Length();
76}
77
78//=======================================================================
79//function :
80//purpose :
81//=======================================================================
82
83
84Handle(PColgp_HArray1OfPnt) PPoly_Polygon3D::Nodes() const
85{
86 return myNodes;
87}
88
89
90//=======================================================================
91//function :
92//purpose :
93//=======================================================================
94
95void PPoly_Polygon3D::Nodes(const Handle(PColgp_HArray1OfPnt)& Nodes)
96{
97 myNodes = Nodes;
98}
99
100//=======================================================================
101//function :
102//purpose :
103//=======================================================================
104
105Standard_Boolean PPoly_Polygon3D::HasParameters() const
106{
107 return (!myParameters.IsNull());
108}
109
110
111//=======================================================================
112//function :
113//purpose :
114//=======================================================================
115
116void PPoly_Polygon3D::Parameters(const Handle(PColStd_HArray1OfReal)& Param)
117{
118 myParameters = Param;
119}
120
121
122//=======================================================================
123//function :
124//purpose :
125//=======================================================================
126
127Handle(PColStd_HArray1OfReal) PPoly_Polygon3D::Parameters() const
128{
129 return myParameters;
130}
131