Esempio n. 1
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            Tortuga.Types.Material material = null;
            DA.GetData <Tortuga.Types.Material>(0, ref material);

            GH_Number thickness = new GH_Number(0);

            DA.GetData <GH_Number>(1, ref thickness);

            Types.Layer layer = new Types.Layer(material, thickness.Value);

            DA.SetData(0, layer);
        }
Esempio n. 2
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            Tortuga.Types.Material material = null;
            DA.GetData <Tortuga.Types.Material>(1, ref material);

            Tortuga.Types.Profile profile = null;
            DA.GetData <Tortuga.Types.Profile>(0, ref profile);

            GH_Number distance = new GH_Number(0);

            DA.GetData <GH_Number>(2, ref distance);

            Types.Layer layer = new Types.Layer(material, profile.Area / distance.Value);

            DA.SetData(0, layer);
        }