summaryrefslogtreecommitdiff
path: root/src/StepGeom/StepGeom_PcurveOrSurface.cxx
blob: a66ff538c94c85e681b794add832aa86eef6f84c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

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

StepGeom_PcurveOrSurface::StepGeom_PcurveOrSurface () {  }

Standard_Integer StepGeom_PcurveOrSurface::CaseNum(const Handle(Standard_Transient)& ent) const
{
	if (ent.IsNull()) return 0;
	if (ent->IsKind(STANDARD_TYPE(StepGeom_Pcurve))) return 1;
	if (ent->IsKind(STANDARD_TYPE(StepGeom_Surface))) return 2;
	return 0;
}

Handle(StepGeom_Pcurve) StepGeom_PcurveOrSurface::Pcurve () const
{
	return GetCasted(StepGeom_Pcurve,Value());
}

Handle(StepGeom_Surface) StepGeom_PcurveOrSurface::Surface () const
{
	return GetCasted(StepGeom_Surface,Value());
}