summaryrefslogtreecommitdiff
path: root/src/StepGeom/StepGeom_CurveOnSurface.cxx
blob: 6db05f1c8d67381c8dda866de669564c518dade7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

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

StepGeom_CurveOnSurface::StepGeom_CurveOnSurface () {  }

Standard_Integer StepGeom_CurveOnSurface::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_SurfaceCurve))) return 2;
	if (ent->IsKind(STANDARD_TYPE(StepGeom_CompositeCurveOnSurface))) return 3;
	return 0;
}

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

Handle(StepGeom_SurfaceCurve) StepGeom_CurveOnSurface::SurfaceCurve () const
{
	return GetCasted(StepGeom_SurfaceCurve,Value());
}

Handle(StepGeom_CompositeCurveOnSurface) StepGeom_CurveOnSurface::CompositeCurveOnSurface () const
{
	return GetCasted(StepGeom_CompositeCurveOnSurface,Value());
}