GetCoordCartesian(this cPointObj obj, string Name, string CSys = "Global")
        {
            double X, Y, Z;

            X = Y = Z = default(double);
            var res = obj.GetCoordCartesian(Name, ref X, ref Y, ref Z, CSys);

            return(X, Y, Z);
        }
Example #2
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);
        }