// --- own field : outer ---
- Handle(StepShape_ClosedShell) aOuter;
+ Handle(StepShape_ConnectedFaceSet) aOuter;
//szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
- data->ReadEntity(num, 2,"outer", ach, STANDARD_TYPE(StepShape_ClosedShell), aOuter);
+ data->ReadEntity(num, 2,"outer", ach, STANDARD_TYPE(StepShape_ConnectedFaceSet), aOuter);
//--- Initialisation of the read entity ---
{
// Access outer shell
Handle(StepShape_ManifoldSolidBrep) aMSB = Handle(StepShape_ManifoldSolidBrep)::DownCast(Repr);
- Handle(StepShape_ClosedShell) aShell = aMSB->Outer();
+ Handle(StepShape_ConnectedFaceSet) aShell = aMSB->Outer();
// Expand shell contents to CAF tree
ExpandShell(aShell, ShapeLab, TP, ShapeTool);
uses
+ ConnectedFaceSet from StepShape,
ClosedShell from StepShape,
HAsciiString from TCollection
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;
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;
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;
}
// Start Mapping
- Handle(StepShape_ClosedShell) aCShell;
- aCShell = aManifoldSolid->Outer();
+ Handle(StepShape_ConnectedFaceSet) aShell;
+ aShell = aManifoldSolid->Outer();
StepToTopoDS_TranslateShell myTranShell;
myTranShell.SetPrecision(Precision());
myTranShell.SetMaxTol(MaxTol());
// Non-manifold topology is not referenced by ManifoldSolidBrep (ssv; 14.11.2010)
StepToTopoDS_NMTool dummyNMTool;
- myTranShell.Init(aCShell, myTool, dummyNMTool);
+ myTranShell.Init(aShell, myTool, dummyNMTool);
if (myTranShell.IsDone()) {
TopoDS_Shape Sh = myTranShell.Value();
ResetPreci (S, MaxTol());
}
else {
- TP->AddWarning(aCShell," OuterShell from ManifoldSolidBrep not mapped to TopoDS");
+ TP->AddWarning(aShell," OuterShell from ManifoldSolidBrep not mapped to TopoDS");
myError = StepToTopoDS_BuilderOther;
done = Standard_False;
}
myTranShell.SetMaxTol(MaxTol());
// OuterBound
- aCShell = aBRepWithVoids->Outer();
+ aCShell = Handle(StepShape_ClosedShell)::DownCast(aBRepWithVoids->Outer());
// Non-manifold topology is not referenced by BrepWithVoids (ssv; 14.11.2010)
StepToTopoDS_NMTool dummyNMTool;
myTranShell.Init(aCShell, myTool, dummyNMTool);
// Start Mapping
Handle(StepShape_ClosedShell) aCShell;
- aCShell = aFB->Outer();
+ aCShell = Handle(StepShape_ClosedShell)::DownCast(aFB->Outer());
TopoDS_Shape Sh;
StepToTopoDS_TranslateShell myTranShell;
// Start Mapping
Handle(StepShape_ClosedShell) aCShell;
- aCShell = aFBABWV->Outer();
+ aCShell = Handle(StepShape_ClosedShell)::DownCast(aFBABWV->Outer());
TopoDS_Shape Sh;
StepToTopoDS_TranslateShell myTranShell;