Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
#include <StepShape_PolyLoop.ixx>
StepShape_PolyLoop::StepShape_PolyLoop () {}
void StepShape_PolyLoop::Init(
const Handle(TCollection_HAsciiString)& aName)
{
StepRepr_RepresentationItem::Init(aName);
}
void StepShape_PolyLoop::Init(
const Handle(TCollection_HAsciiString)& aName,
const Handle(StepGeom_HArray1OfCartesianPoint)& aPolygon)
{
// --- classe own fields ---
polygon = aPolygon;
// --- classe inherited fields ---
StepRepr_RepresentationItem::Init(aName);
}
void StepShape_PolyLoop::SetPolygon(const Handle(StepGeom_HArray1OfCartesianPoint)& aPolygon)
{
polygon = aPolygon;
}
Handle(StepGeom_HArray1OfCartesianPoint) StepShape_PolyLoop::Polygon() const
{
return polygon;
}
Handle(StepGeom_CartesianPoint) StepShape_PolyLoop::PolygonValue(const Standard_Integer num) const
{
return polygon->Value(num);
}
Standard_Integer StepShape_PolyLoop::NbPolygon () const
{
if (polygon.IsNull()) return 0;
return polygon->Length();
}