mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +03:00
0025169: STEP Reader - allow opened shells to be an outer for ManifoldSolidBrep
Allow opened shells to be an outer for ManifoldSolidBrep
This commit is contained in:
@@ -20,6 +20,7 @@ inherits SolidModel from StepShape
|
||||
|
||||
uses
|
||||
|
||||
ConnectedFaceSet from StepShape,
|
||||
ClosedShell from StepShape,
|
||||
HAsciiString from TCollection
|
||||
is
|
||||
@@ -35,13 +36,17 @@ is
|
||||
aName : HAsciiString from TCollection;
|
||||
aOuter : ClosedShell from StepShape) is virtual;
|
||||
|
||||
Init (me : mutable;
|
||||
aName : HAsciiString from TCollection;
|
||||
aOuter : ConnectedFaceSet from StepShape) is virtual;
|
||||
|
||||
-- Specific Methods for Field Data Access --
|
||||
|
||||
SetOuter(me : mutable; aOuter : ClosedShell);
|
||||
Outer (me) returns ClosedShell;
|
||||
SetOuter(me : mutable; aOuter : ConnectedFaceSet);
|
||||
Outer (me) returns ConnectedFaceSet;
|
||||
|
||||
fields
|
||||
|
||||
outer : ClosedShell from StepShape;
|
||||
outer : ConnectedFaceSet from StepShape;
|
||||
|
||||
end ManifoldSolidBrep;
|
||||
|
@@ -23,9 +23,19 @@ void StepShape_ManifoldSolidBrep::Init(
|
||||
StepRepr_RepresentationItem::Init(aName);
|
||||
}
|
||||
|
||||
void StepShape_ManifoldSolidBrep::Init(
|
||||
const Handle(TCollection_HAsciiString)& aName,
|
||||
const Handle(StepShape_ClosedShell)& aOuter)
|
||||
{
|
||||
// --- classe own fields ---
|
||||
outer = aOuter;
|
||||
// --- classe inherited fields ---
|
||||
StepRepr_RepresentationItem::Init(aName);
|
||||
}
|
||||
|
||||
void StepShape_ManifoldSolidBrep::Init(
|
||||
const Handle(TCollection_HAsciiString)& aName,
|
||||
const Handle(StepShape_ClosedShell)& aOuter)
|
||||
const Handle(StepShape_ConnectedFaceSet)& aOuter)
|
||||
{
|
||||
// --- classe own fields ---
|
||||
outer = aOuter;
|
||||
@@ -33,13 +43,12 @@ void StepShape_ManifoldSolidBrep::Init(
|
||||
StepRepr_RepresentationItem::Init(aName);
|
||||
}
|
||||
|
||||
|
||||
void StepShape_ManifoldSolidBrep::SetOuter(const Handle(StepShape_ClosedShell)& aOuter)
|
||||
void StepShape_ManifoldSolidBrep::SetOuter(const Handle(StepShape_ConnectedFaceSet)& aOuter)
|
||||
{
|
||||
outer = aOuter;
|
||||
}
|
||||
|
||||
Handle(StepShape_ClosedShell) StepShape_ManifoldSolidBrep::Outer() const
|
||||
Handle(StepShape_ConnectedFaceSet) StepShape_ManifoldSolidBrep::Outer() const
|
||||
{
|
||||
return outer;
|
||||
}
|
||||
|
Reference in New Issue
Block a user