summaryrefslogtreecommitdiff
path: root/src/StepShape/StepShape_ShellBasedSurfaceModel.cxx
blob: 348094d22bbf98c8b2cdfa6498ff7e4d47b7ce5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <StepShape_ShellBasedSurfaceModel.ixx>


StepShape_ShellBasedSurfaceModel::StepShape_ShellBasedSurfaceModel ()  {}

void StepShape_ShellBasedSurfaceModel::Init(
	const Handle(TCollection_HAsciiString)& aName)
{

	StepRepr_RepresentationItem::Init(aName);
}

void StepShape_ShellBasedSurfaceModel::Init(
	const Handle(TCollection_HAsciiString)& aName,
	const Handle(StepShape_HArray1OfShell)& aSbsmBoundary)
{
	// --- classe own fields ---
	sbsmBoundary = aSbsmBoundary;
	// --- classe inherited fields ---
	StepRepr_RepresentationItem::Init(aName);
}


void StepShape_ShellBasedSurfaceModel::SetSbsmBoundary(const Handle(StepShape_HArray1OfShell)& aSbsmBoundary)
{
	sbsmBoundary = aSbsmBoundary;
}

Handle(StepShape_HArray1OfShell) StepShape_ShellBasedSurfaceModel::SbsmBoundary() const
{
	return sbsmBoundary;
}

StepShape_Shell StepShape_ShellBasedSurfaceModel::SbsmBoundaryValue(const Standard_Integer num) const
{
	return sbsmBoundary->Value(num);
}

Standard_Integer StepShape_ShellBasedSurfaceModel::NbSbsmBoundary () const
{
	return sbsmBoundary->Length();
}