/// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            Rectangle3d B = Rectangle3d.Unset;

            DA.GetData(0, ref B);

            List <double> XR = new List <double>();

            DA.GetDataList(1, XR);

            List <double> YR = new List <double>();

            DA.GetDataList(2, YR);

            double IP = 0.02;

            DA.GetData(3, ref IP);

            double EP = 0.02;

            DA.GetData(4, ref EP);

            int PA = 0;

            DA.GetData(5, ref PA);

            //Output
            DA.SetDataList(0, RectSolution.IrregularTiles(B, XR, YR, EP, IP, PA));
        }
Пример #2
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            Rectangle3d B = Rectangle3d.Unset;

            DA.GetData(0, ref B);

            List <double> R = new List <double>();

            DA.GetDataList(1, R);

            double H = 0.25;

            DA.GetData(2, ref H);

            double WP = 0.02;

            DA.GetData(3, ref WP);

            double HP = 0.02;

            DA.GetData(4, ref HP);



            //Output
            Rectangle3d rest;

            DA.SetDataList(1, RectSolution.HorizontalTiles(B, R, H, WP, HP, out rest));
            DA.SetData(0, rest);
        }
Пример #3
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            Rectangle3d B = Rectangle3d.Unset;

            DA.GetData(0, ref B);

            int C = 5;

            DA.GetData(1, ref C);

            int R = 5;

            DA.GetData(2, ref R);

            double IP = 0.02;

            DA.GetData(3, ref IP);

            double EP = 0.02;

            DA.GetData(4, ref EP);

            int PA = 0;

            DA.GetData(5, ref PA);

            //Output
            DA.SetDataList(0, RectSolution.GridTiles(B, IP, EP, C, R, PA));
        }