Beispiel #1
0
 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!");
 }
Beispiel #2
0
 public ConicalSurfaceConvertable(Surface surface, StpFile model)
 {
     _surface = surface;
     _model   = model;
     Init();
 }
 public CylindricalSurfaceConvertable(Surface surface, StpFile model)
 {
     _surface = (CylindricalSurface)surface;
     _model   = model;
     Init();
 }
Beispiel #4
0
 public CircleConvertable(Circle circle, STEPFileData model)
 {
     _circle = circle;
     _model  = model;
     Init();
 }
 public PlaneConvertable(Surface surface, StpFile model)
 {
     _surface = (Plane)surface;
     _model   = model;
     Init();
 }
Beispiel #6
0
 public BoundConvertable(Bound bound, StpFile model)
 {
     _bound = bound;
     _model = model;
     Init();
 }