Exemplo n.º 1
0
 protected override void SetOutputs(IGH_DataAccess da)
 {
     BoxEnvironmentType environment = new BoxEnvironmentType(box.BoundingBox, x_count, y_count, z_count);
     environment.setContainer();
     if (obs != null)
         environment.setObstacles(obs);
     //environment.setContainer(null);
     da.SetData(nextOutputIndex++, environment);
 }
 protected override void SetOutputs(IGH_DataAccess da)
 {
     BoundingBox box = breps[0].GetBoundingBox(Plane.WorldXY);
     foreach (Brep brep in breps)
     {
         BoundingBox thisbox = brep.GetBoundingBox(Plane.WorldXY);
         box.Union(thisbox);
     }
     BoxEnvironmentType environment = new BoxEnvironmentType(box, x_count, y_count, z_count);
     environment.setContainer(breps);
     //pos = environment.griddata;
     if (obs != null)
         environment.setObstacles(obs);
     //environment.setContainer(null);
     da.SetData(nextOutputIndex++, environment);
     //da.SetDataList(1, pos);
 }