Esempio n. 1
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)
        {
            Pyramid iPyramid = null;

            DA.GetData("Pyramid", ref iPyramid);
            DA.SetDataList("Display", iPyramid.ComputeDisplayLines());
        }
        /// <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)
        {
            Plane  iBasePlane = Plane.Unset;
            double iHeight    = double.NaN;
            double iWidth     = double.NaN;
            double iLength    = double.NaN;

            DA.GetData(0, ref iBasePlane);
            DA.GetData(1, ref iHeight);
            DA.GetData(2, ref iWidth);
            DA.GetData(3, ref iLength);

            Pyramid pyramid = new Pyramid(iBasePlane, iLength, iHeight, iWidth);

            DA.SetData("Pyramid", pyramid);
        }