Beispiel #1
0
        /***************************************************/

        public static KiteProfile InterpolateProfile(KiteProfile startProfile, KiteProfile endProfile, double parameter, int interpolationOrder,
                                                     double domainStart = 0, double domainEnd = 1)
        {
            return(Create.KiteProfile(
                       Interpolate(startProfile.Width1, endProfile.Width1, parameter, interpolationOrder, domainStart, domainEnd),
                       Interpolate(startProfile.Angle1, endProfile.Angle1, parameter, interpolationOrder, domainStart, domainEnd),
                       Interpolate(startProfile.Thickness, endProfile.Thickness, parameter, interpolationOrder, domainStart, domainEnd)));
        }
Beispiel #2
0
        public static string Description(this KiteProfile profile)
        {
            if (profile == null)
            {
                return("null profile");
            }

            return($"Kite {profile.Angle1:G2}x{profile.Width1:G3}x{profile.Thickness:G3}");
        }
Beispiel #3
0
 public static double Thickness(this KiteProfile kiteProfile)
 {
     return(kiteProfile.Thickness);
 }
Beispiel #4
0
        /***************************************************/

        public static string Description(this KiteProfile profile)
        {
            return("Kite " + Math.Round(profile.Angle1, 2) + "x" + profile.Width1 + "x" + profile.Thickness);
        }
Beispiel #5
0
 public static double WarpingConstant(this KiteProfile profile)
 {
     return(profile.IsNull() ? 0 : 0);
 }
 public static double WarpingConstant(this KiteProfile profile)
 {
     return(0);
 }
Beispiel #7
0
        /***************************************************/

        private bool SetProfile(KiteProfile bhomProfile, string sectionName, string matName)
        {
            Engine.Base.Compute.RecordError("KiteProfile is not yet implemented in SAP2000 adapter");
            return(false);
        }
Beispiel #8
0
        /***************************************************/

        private bool CreateProfile(string name, KiteProfile profile)
        {
            Engine.Base.Compute.RecordError("KiteProfile not supported in Lusas_Toolkit");
            return(false);
        }