Exemplo 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)
        {
            IField3d <double> f0 = null;
            IField3d <double> f1 = null;

            if (!DA.GetData(0, ref f0))
            {
                return;
            }
            if (!DA.GetData(1, ref f1))
            {
                return;
            }


            DA.SetData(0, Field3d.CreateIntersection(f0, f1));
        }