summaryrefslogtreecommitdiff
path: root/src/StepShape/StepShape_BrepWithVoids.cxx
blob: ae4ae8ec68a434f82251d5da443d7f9394fad9f2 (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
43
44
45
#include <StepShape_BrepWithVoids.ixx>


StepShape_BrepWithVoids::StepShape_BrepWithVoids ()  {}

void StepShape_BrepWithVoids::Init(
	const Handle(TCollection_HAsciiString)& aName,
	const Handle(StepShape_ClosedShell)& aOuter)
{

	StepShape_ManifoldSolidBrep::Init(aName, aOuter);
}

void StepShape_BrepWithVoids::Init(
	const Handle(TCollection_HAsciiString)& aName,
	const Handle(StepShape_ClosedShell)& aOuter,
	const Handle(StepShape_HArray1OfOrientedClosedShell)& aVoids)
{
	// --- classe own fields ---
	voids = aVoids;
	// --- classe inherited fields ---
	StepShape_ManifoldSolidBrep::Init(aName, aOuter);
}


void StepShape_BrepWithVoids::SetVoids(const Handle(StepShape_HArray1OfOrientedClosedShell)& aVoids)
{
	voids = aVoids;
}

Handle(StepShape_HArray1OfOrientedClosedShell) StepShape_BrepWithVoids::Voids() const
{
	return voids;
}

Handle(StepShape_OrientedClosedShell) StepShape_BrepWithVoids::VoidsValue(const Standard_Integer num) const
{
	return voids->Value(num);
}

Standard_Integer StepShape_BrepWithVoids::NbVoids () const
{
	if (voids.IsNull()) return 0;
	return voids->Length();
}