// File: StepToGeom_MakeElementarySurface.cxx // Created: Fri Jul 2 17:38:21 1993 // Author: Martine LANGLOIS //:p0 abv 19.02.99: management of 'done' flag improved #include #include #include #include #include #include #include #include #include #include #include #include //============================================================================= // Creation d' une ElementarySurface de Geom a partir d' une // ElementarySurface de Step //============================================================================= Standard_Boolean StepToGeom_MakeElementarySurface::Convert (const Handle(StepGeom_ElementarySurface)& SS, Handle(Geom_ElementarySurface)& CS) { if (SS->IsKind(STANDARD_TYPE(StepGeom_Plane))) { const Handle(StepGeom_Plane) Sur = Handle(StepGeom_Plane)::DownCast(SS); return StepToGeom_MakePlane::Convert(Sur,*((Handle(Geom_Plane)*)&CS)); } if (SS->IsKind(STANDARD_TYPE(StepGeom_CylindricalSurface))) { const Handle(StepGeom_CylindricalSurface) Sur = Handle(StepGeom_CylindricalSurface)::DownCast(SS); return StepToGeom_MakeCylindricalSurface::Convert(Sur,*((Handle(Geom_CylindricalSurface)*)&CS)); } if (SS->IsKind(STANDARD_TYPE(StepGeom_ConicalSurface))) { const Handle(StepGeom_ConicalSurface) Sur = Handle(StepGeom_ConicalSurface)::DownCast(SS); return StepToGeom_MakeConicalSurface::Convert(Sur,*((Handle(Geom_ConicalSurface)*)&CS)); } if (SS->IsKind(STANDARD_TYPE(StepGeom_SphericalSurface))) { const Handle(StepGeom_SphericalSurface) Sur = Handle(StepGeom_SphericalSurface)::DownCast(SS); return StepToGeom_MakeSphericalSurface::Convert(Sur,*((Handle(Geom_SphericalSurface)*)&CS)); } if (SS->IsKind(STANDARD_TYPE(StepGeom_ToroidalSurface))) { const Handle(StepGeom_ToroidalSurface) Sur = Handle(StepGeom_ToroidalSurface)::DownCast(SS); return StepToGeom_MakeToroidalSurface::Convert(Sur,*((Handle(Geom_ToroidalSurface)*)&CS)); } return Standard_False; }