Esempio n. 1
0
        /***************************************************/

        // Clone.
        public override GuanacoObject Clone(bool newID = false)
        {
            NodalMoment nm = this.ShallowClone(newID) as NodalMoment;

            nm._axis  = new Vector3d(this._axis);
            nm._point = new Point3d(this._point);
            return(nm);
        }
Esempio n. 2
0
        /***************************************************/

        // Apply moment to the closest point that lies within tolerance.
        private void ApplyLoad(NodalMoment load)
        {
            Node nodeToLoad = this.ClosestNode(load.Point);

            if (nodeToLoad != null)
            {
                nodeToLoad.AddMomentLoad(load.Axis * load.LoadValue);
            }
        }