Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepShape / StepShape_Face.cxx
CommitLineData
7fd59977 1#include <StepShape_Face.ixx>
2
3
4StepShape_Face::StepShape_Face () {}
5
6void StepShape_Face::Init(
7 const Handle(TCollection_HAsciiString)& aName)
8{
9
10 StepRepr_RepresentationItem::Init(aName);
11}
12
13void StepShape_Face::Init(
14 const Handle(TCollection_HAsciiString)& aName,
15 const Handle(StepShape_HArray1OfFaceBound)& aBounds)
16{
17 // --- classe own fields ---
18 bounds = aBounds;
19 // --- classe inherited fields ---
20 StepRepr_RepresentationItem::Init(aName);
21}
22
23
24void StepShape_Face::SetBounds(const Handle(StepShape_HArray1OfFaceBound)& aBounds)
25{
26 bounds = aBounds;
27}
28
29Handle(StepShape_HArray1OfFaceBound) StepShape_Face::Bounds() const
30{
31 return bounds;
32}
33
34Handle(StepShape_FaceBound) StepShape_Face::BoundsValue(const Standard_Integer num) const
35{
36 return bounds->Value(num);
37}
38
39Standard_Integer StepShape_Face::NbBounds () const
40{
41 if (bounds.IsNull()) return 0;
42 return bounds->Length();
43}