Inheritance: AbstractEnvironmentType
        protected override void SetOutputs(IGH_DataAccess da)
        {
            SurfaceEnvironmentType environment = new SurfaceEnvironmentType(srf, wrap);

            da.SetData(nextOutputIndex++, environment);
            da.SetData(nextOutputIndex++, environment.RefEnvironment);
        }
        public override bool Equals(object obj)
        {
            // If parameter cannot be cast to ThreeDPoint return false:
            SurfaceEnvironmentType p = obj as SurfaceEnvironmentType;

            if (p == null)
            {
                return(false);
            }

            return(base.Equals(obj) && environment.Equals(p.environment));
        }
    // Copy Constructor
    public SurfaceEnvironmentType(SurfaceEnvironmentType environment)
    {
      this.environment = environment.environment;
      Width = environment.Width;
      Height = environment.Height;
      Wrap = environment.Wrap;
      RefEnvironment = environment.RefEnvironment;

      Interval uDom = RefEnvironment.Domain(0);
      Interval vDom = RefEnvironment.Domain(1);

      minX = uDom.Min;
      maxX = uDom.Max;
      minY = vDom.Min;
      maxY = vDom.Max;
    }
        // Copy Constructor
        public SurfaceEnvironmentType(SurfaceEnvironmentType environment)
        {
            this.environment = environment.environment;
            Width            = environment.Width;
            Height           = environment.Height;
            Wrap             = environment.Wrap;
            RefEnvironment   = environment.RefEnvironment;

            Interval uDom = RefEnvironment.Domain(0);
            Interval vDom = RefEnvironment.Domain(1);

            minX = uDom.Min;
            maxX = uDom.Max;
            minY = vDom.Min;
            maxY = vDom.Max;
        }
Exemple #5
0
        protected override void SetOutputs(IGH_DataAccess da)
        {
            AbstractEnvironmentType environment = new SurfaceEnvironmentType(srf, false);

            da.SetData(nextOutputIndex++, environment);
        }
 protected override void SetOutputs(IGH_DataAccess da)
 {
   SurfaceEnvironmentType environment = new SurfaceEnvironmentType(srf, wrap);
   da.SetData(nextOutputIndex++, environment);
   da.SetData(nextOutputIndex++, environment.RefEnvironment);
 }
 public bool Equals(SurfaceEnvironmentType p)
 {
   return base.Equals(p) && environment.Equals(p.environment);
 }
 public bool Equals(SurfaceEnvironmentType p)
 {
     return(base.Equals(p) && environment.Equals(p.environment));
 }
 protected override void SetOutputs(IGH_DataAccess da)
 {
   AbstractEnvironmentType environment = new SurfaceEnvironmentType(srf, false);
   da.SetData(nextOutputIndex++, environment);
 }