/// <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) { IGH_Goo goo = null; Image image = new Image(); if (!DA.GetData(0, ref goo)) { return; } if (!goo.TryGetImage(ref image)) { return; } double angle = 0; DA.GetData(1, ref angle); double depth = 0; DA.GetData(2, ref depth); bool toPolar = true; DA.GetData(3, ref toPolar); Filter filter = new Af.Polar(toPolar, depth, angle, false, false); image.Filters.Add(new Af.Polar(toPolar, depth, angle, false, false)); DA.SetData(0, image); DA.SetData(1, filter); }