7fd59977 |
1 | |
2 | #include <StepShape_Shell.ixx> |
3 | #include <Interface_Macros.hxx> |
4 | |
5 | StepShape_Shell::StepShape_Shell () { } |
6 | |
7 | Standard_Integer StepShape_Shell::CaseNum(const Handle(Standard_Transient)& ent) const |
8 | { |
9 | if (ent.IsNull()) return 0; |
10 | if (ent->IsKind(STANDARD_TYPE(StepShape_OpenShell))) return 1; |
11 | if (ent->IsKind(STANDARD_TYPE(StepShape_ClosedShell))) return 2; |
12 | return 0; |
13 | } |
14 | |
15 | Handle(StepShape_OpenShell) StepShape_Shell::OpenShell () const |
16 | { |
17 | return GetCasted(StepShape_OpenShell,Value()); |
18 | } |
19 | |
20 | Handle(StepShape_ClosedShell) StepShape_Shell::ClosedShell () const |
21 | { |
22 | return GetCasted(StepShape_ClosedShell,Value()); |
23 | } |