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