public static Dictionary <string, object> ThicknessDeconstruct(FemDesign.Shells.Thickness thicknessLocationValue) { return(new Dictionary <string, object> { { "Point", thicknessLocationValue.ToDynamo() }, { "Value", thicknessLocationValue.Value } }); }
protected override void SolveInstance(IGH_DataAccess DA) { // get input FemDesign.Shells.Thickness obj = null; if (!DA.GetData(0, ref obj)) { return; } if (obj == null) { return; } // return DA.SetData(0, obj.GetFdPoint().ToRhino()); DA.SetData(1, obj.Value); }
protected override void SolveInstance(IGH_DataAccess DA) { // Point3d point = Point3d.Origin; double val = 0; if (!DA.GetData(0, ref point)) { return; } if (!DA.GetData(1, ref val)) { return; } // convert geometry FemDesign.Geometry.FdPoint3d fdPoint = point.FromRhino(); // FemDesign.Shells.Thickness obj = new FemDesign.Shells.Thickness(fdPoint, val); // return DA.SetData(0, obj); }