Esempio n. 1
0
        public static Node ToBHoM(this cPointObj pointObj, string id)
        {
            double x, y, z;

            x = y = z = 0;
            bool[]   restraint = new bool[6];
            double[] spring    = new double[6];

            pointObj.GetCoordCartesian(id, ref x, ref y, ref z);

            pointObj.GetRestraint(id, ref restraint);
            pointObj.SetSpring(id, ref spring);

            Node bhNode = Structure.Create.Node(new oM.Geometry.Point()
            {
                X = x, Y = y, Z = z
            }, "", GetConstraint6DOF(restraint, spring));

            bhNode.CustomData.Add(AdapterId, id);

            return(bhNode);
        }