Example #1
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            //Input
            Point3d pt = new Point3d();
            DA.GetData(0, ref pt);

            Vector3d force = new Vector3d();
            DA.GetData(1, ref force);


            //Calculate
            GoalObject load = new LoadGoal(pt, force);

            //Output
            DA.SetData(0, load);
        }
Example #2
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            //Input
            Point3d pt = new Point3d();

            DA.GetData(0, ref pt);

            Vector3d force = new Vector3d();

            DA.GetData(1, ref force);


            //Calculate
            GoalObject load = new LoadGoal(pt, force);

            //Output
            DA.SetData(0, load);
        }