public override object GetValue(NodePort port) { var graph = (Terra2DGraph)this.graph; if (graph.isComputing) { try { ValueMap input = GetInputValue("input", this.input); ValueMap mask = GetInputValue("mask", this.mask); return(input.ApplyMask(mask, threshold)); } catch (System.Exception e) { graph.isComputing = false; throw e; } } return(null); }