summaryrefslogtreecommitdiff
path: root/src/StepShape/StepShape_SurfaceModel.cxx
blob: 250c92b84756e20cb1951f1c5b998ac2178fe0e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#include <StepShape_SurfaceModel.ixx>
#include <Interface_Macros.hxx>

StepShape_SurfaceModel::StepShape_SurfaceModel () {  }

Standard_Integer StepShape_SurfaceModel::CaseNum(const Handle(Standard_Transient)& ent) const
{
	if (ent.IsNull()) return 0;
	if (ent->IsKind(STANDARD_TYPE(StepShape_ShellBasedSurfaceModel))) return 1;
//	if (ent->IsKind(STANDARD_TYPE(StepShape_FaceBasedSurfaceModel))) return 2;
	return 0;
}

Handle(StepShape_ShellBasedSurfaceModel) StepShape_SurfaceModel::ShellBasedSurfaceModel () const
{
	return GetCasted(StepShape_ShellBasedSurfaceModel,Value());
}