0022627: Change OCCT memory management defaults
[occt.git] / src / StepShape / StepShape_SurfaceModel.cxx
1
2 #include <StepShape_SurfaceModel.ixx>
3 #include <Interface_Macros.hxx>
4
5 StepShape_SurfaceModel::StepShape_SurfaceModel () {  }
6
7 Standard_Integer StepShape_SurfaceModel::CaseNum(const Handle(Standard_Transient)& ent) const
8 {
9         if (ent.IsNull()) return 0;
10         if (ent->IsKind(STANDARD_TYPE(StepShape_ShellBasedSurfaceModel))) return 1;
11 //      if (ent->IsKind(STANDARD_TYPE(StepShape_FaceBasedSurfaceModel))) return 2;
12         return 0;
13 }
14
15 Handle(StepShape_ShellBasedSurfaceModel) StepShape_SurfaceModel::ShellBasedSurfaceModel () const
16 {
17         return GetCasted(StepShape_ShellBasedSurfaceModel,Value());
18 }