Ejemplo n.º 1
0
        static private bool RHSCrossSection(string section, out WR_IXSec xSec)
        {
            double height, width, thickness;

            if (!GetDimensionsRHS(section, out height, out width, out thickness))
            {
                xSec = null;
                return(false);
            }

            double factor = Utilities.GetScalingFactorFromRhino();

            height    *= factor;
            width     *= factor;
            thickness *= factor;

            xSec = new WR_XSecRHS(height, width, thickness);
            return(true);
        }
Ejemplo n.º 2
0
        private static bool RHSCrossSection(string section, out WR_IXSec xSec)
        {
            double height, width, thickness;

            if (!GetDimensionsRHS(section, out height, out width, out thickness))
            {
                xSec = null;
                return false;
            }

            double factor = Utilities.GetScalingFactorFromRhino();
            height *= factor;
            width *= factor;
            thickness *= factor;

            xSec = new WR_XSecRHS(height, width, thickness);
            return true;
        }