public AirfoilPreviewCurveConverter(Airfoil.Airfoil airfoil, Size previewRegionSize)
        {
            outlineCurve = PairedPoint.convertToPointArray(airfoil.airfoilCurve, PairedPoint.Direction.FromUpperTrailing);
            camberCurve  = airfoil.camberLine;

            drawingRegionSize = previewRegionSize;
        }
Exemplo n.º 2
0
        //
        // Constructors
        //
        public BasisAirfoilsMethod(Airfoil.Airfoil[] basis)
        {
            List <Airfoil.Airfoil> airfoils = new List <Airfoil.Airfoil>();

            foreach (var airfoil in basis)
            {
                var importer    = new AirfoilShapeImporter(PairedPoint.convertToPointArray(airfoil.airfoilCurve, PairedPoint.Direction.FromUpperTrailing));
                var tempAirfoil = importer.getAirfoil(numberOfPoints);
                tempAirfoil.name = airfoil.name;
                airfoils.Add(tempAirfoil);
            }

            _basisAirfoils = airfoils.ToArray();
        }
 public void setAirfoil(Airfoil.Airfoil airfoil)
 {
     outlineCurve = PairedPoint.convertToPointArray(airfoil.airfoilCurve, PairedPoint.Direction.FromUpperTrailing);
     camberCurve  = airfoil.camberLine;
 }