Exemple #1
0
        /// <summary>
        /// Convert a list of Nucleus points to Brief FE PointYZs.
        /// NOTE: The X and Y coordinates of the input point
        /// will map to the Y and Z coordinates of the output
        /// point, respectively.
        /// </summary>
        /// <param name="points"></param>
        /// <returns></returns>
        public static BFE.PointYZ[] ConvertYZ(IList <Vector> points)
        {
            var result = new BFE.PointYZ[points.Count];

            for (int i = 0; i < points.Count; i++)
            {
                result[i] = ConvertYZ(points[i]);
            }
            return(result);
        }
        /// <summary>
        /// Gets a rectangular section.
        /// </summary>
        /// <param name="h">The height of section.</param>
        /// <param name="w">The width of section.</param>
        /// <returns></returns>
        /// <exception cref="System.NotImplementedException"></exception>
        public static PointYZ[] GetRectangularSection(double h, double w)
        {
            var buf = new PointYZ[] {
                new PointYZ(-w / 2, -h / 2),
                new PointYZ(-w / 2, h / 2),
                new PointYZ(w / 2, h / 2),
                new PointYZ(w / 2, -h / 2),
                new PointYZ(-w / 2, -h / 2)
            };

            return(buf);
        }
        /// <summary>
        /// Gets an I section with defined parameters.
        /// </summary>
        /// <param name="w">The overall width of section.</param>
        /// <param name="h">The overall height of section.</param>
        /// <param name="tf">The thickness of flanges of section.</param>
        /// <param name="tw">The thickness of web of section.</param>
        /// <returns></returns>
        /// <exception cref="System.NotImplementedException"></exception>
        public static PointYZ[] GetISetion(double w, double h, double tf, double tw)
        {
            var buf = new PointYZ[] {
                new PointYZ(-w / 2, -h / 2),
                new PointYZ(-w / 2, -h / 2 + tf),
                new PointYZ(-tw / 2, -h / 2 + tf),
                new PointYZ(-tw / 2, h / 2 - tf),
                new PointYZ(-w / 2, h / 2 - tf),
                new PointYZ(-w / 2, h / 2),

                new PointYZ(w / 2, h / 2),
                new PointYZ(w / 2, h / 2 - tf),
                new PointYZ(tw / 2, h / 2 - tf),
                new PointYZ(tw / 2, -h / 2 + tf),
                new PointYZ(w / 2, -h / 2 + tf),
                new PointYZ(w / 2, -h / 2),

                new PointYZ(-w / 2, -h / 2)
            };


            return(buf);
        }