コード例 #1
0
ファイル: Visualize.cs プロジェクト: BHoM/BHoM_Engine
        public static List <ICurve> Visualize(this PointVelocity pointVelocity, double scaleFactor = 1.0, bool displayTranslations = true, bool displayRotations = true, bool asResultants = true)
        {
            if (pointVelocity.IsNull())
            {
                return(null);
            }

            List <ICurve> arrows = new List <ICurve>();

            Vector forceVec  = pointVelocity.TranslationalVelocity * scaleFactor * 1000;
            Vector momentVec = pointVelocity.RotationalVelocity * scaleFactor * 1000;

            foreach (Node node in pointVelocity.Objects.Elements)
            {
                if (displayTranslations)
                {
                    arrows.AddRange(Arrows(node.Position, forceVec, true, asResultants));
                }
                if (displayRotations)
                {
                    arrows.AddRange(Arrows(node.Position, momentVec, false, asResultants));
                }
            }

            return(arrows);
        }
コード例 #2
0
 public static LoadType LoadType(this PointVelocity load)
 {
     return(oM.Structure.Loads.LoadType.PointVelocity);
 }