private static IConvertable Convertable(Surface surface, StpFile model) { if (surface.GetType() == typeof(CylindricalSurface)) { return(new CylindricalSurfaceConvertable(surface, model)); } else if (surface.GetType() == typeof(ConicalSurface)) { return(new ConicalSurfaceConvertable(surface, model)); } else if (surface.GetType() == typeof(Plane)) { return(new PlaneConvertable(surface, model)); } else if (surface.GetType() == typeof(ToroidalSurface)) { return(new ToroidalSurfaceConvertable(surface, model)); } throw new Exception("No convertable found!"); }
public ConicalSurfaceConvertable(Surface surface, StpFile model) { _surface = surface; _model = model; Init(); }
public CylindricalSurfaceConvertable(Surface surface, StpFile model) { _surface = (CylindricalSurface)surface; _model = model; Init(); }
public CircleConvertable(Circle circle, STEPFileData model) { _circle = circle; _model = model; Init(); }
public PlaneConvertable(Surface surface, StpFile model) { _surface = (Plane)surface; _model = model; Init(); }
public BoundConvertable(Bound bound, StpFile model) { _bound = bound; _model = model; Init(); }