protected override void SolveInstance(IGH_DataAccess DA) { // Point3d point = Point3d.Origin; if (!DA.GetData(0, ref point)) { return; } string identifier = "S"; if (!DA.GetData(1, ref identifier)) { // pass } if (point == null || identifier == null) { return; } // convert geometry FemDesign.Geometry.FdPoint3d fdPoint = point.FromRhino(); var obj = FemDesign.Supports.PointSupport.Hinged(fdPoint, identifier); // return DA.SetData(0, obj); }
protected override void SolveInstance(IGH_DataAccess DA) { // get data Point3d point = Point3d.Origin; double val = 0; if (!DA.GetData(0, ref point)) { return; } if (!DA.GetData(1, ref val)) { return; } if (point == null) { return; } // transform geometry FemDesign.Geometry.FdPoint3d fdPoint = point.FromRhino(); // FemDesign.Loads.LoadLocationValue obj = new FemDesign.Loads.LoadLocationValue(fdPoint, val); // return DA.SetData(0, obj); }
protected override void SolveInstance(IGH_DataAccess DA) { // get data Point3d point = Point3d.Origin; if (!DA.GetData(0, ref point)) { return; } double topVal = 0; if (!DA.GetData(1, ref topVal)) { return; } double bottomVal = 0; if (!DA.GetData(2, ref bottomVal)) { return; } // convert geometry Geometry.FdPoint3d p = point.FromRhino(); // create obj Loads.TopBotLocationValue obj = new Loads.TopBotLocationValue(p, topVal, bottomVal); // return DA.SetData(0, obj); }
protected override void SolveInstance(IGH_DataAccess DA) { // get data Point3d point = Point3d.Origin; Vector3d moment = Vector3d.Zero; FemDesign.Loads.LoadCase loadCase = null; string comment = null; if (!DA.GetData(0, ref point)) { return; } if (!DA.GetData(1, ref moment)) { return; } if (!DA.GetData(2, ref loadCase)) { return; } if (!DA.GetData(3, ref comment)) { // pass } if (moment == null || loadCase == null) { return; } ; // convert geometry FemDesign.Geometry.FdPoint3d fdPoint = point.FromRhino(); FemDesign.Geometry.FdVector3d _moment = moment.FromRhino(); // FemDesign.Loads.PointLoad obj = new FemDesign.Loads.PointLoad(fdPoint, _moment, loadCase, comment, Loads.ForceLoadType.Moment); // return DA.SetData(0, obj); }
/*******************************************/ public IGH_GeometricGoo Morph(SpaceMorph xmorph) { if (m_RhinoGeometry == null) { return(null); } else if (m_RhinoGeometry is Point3d) { Point3d morphed = xmorph.MorphPoint((Rhino.Geometry.Point3d)m_RhinoGeometry); return(new GH_IBHoMGeometry { Value = morphed.FromRhino() }); } else { GeometryBase geometry = ((GeometryBase)m_RhinoGeometry).Duplicate(); xmorph.Morph(geometry); return(new GH_IBHoMGeometry { Value = geometry?.IFromRhino() }); } }
protected override void SolveInstance(IGH_DataAccess DA) { Point3d point = Point3d.Origin; Releases.Motions motions = null; Releases.Rotations rotations = null; Releases.MotionsPlasticLimits motionsPlasticLimit = null; Releases.RotationsPlasticLimits rotationsPlasticLimit = null; string identifier = "S"; if (!DA.GetData(0, ref point)) { return; } if (!DA.GetData(1, ref motions)) { return; } if (!DA.GetData(2, ref rotations)) { return; } DA.GetData(3, ref motionsPlasticLimit); DA.GetData(4, ref rotationsPlasticLimit); DA.GetData(5, ref identifier); if (point == null || motions == null || rotations == null || identifier == null) { return; } // Convert geometry Geometry.FdPoint3d fdPoint = point.FromRhino(); var obj = new Supports.PointSupport(fdPoint, motions, motionsPlasticLimit, rotations, rotationsPlasticLimit, identifier); DA.SetData(0, obj); }
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); }