Example #1
0
        void ReadNode_Names()
        {
            Logger.Log(this, "MetaObjectMesh - iterating");
            foreach (string pName in Node_Names)
            {
                Logger.Log(this, "MetaObjectMesh - iter:" + pName);

                Expression pExp = FindChildren(pName);
                Logger.Log(this, "MetaObjectMesh - Got Children");

                if (pExp == null || !pExp.IsValidValue)
                {
                    continue;
                }

                T p0 = MetaObjectPoint3d.CreateAndRun <T>(pExp);
                Logger.Log(this, "MetaObjectMesh - p is null: " + (p0 == null));
                Logger.Log(this, "MetaObjectMesh - GotExpression");

                if (p0 != null && p0.IsValid())
                {
                    Logger.Log(this, "MetaObjectMesh - Got Point " + pName);
                    pnts.Add(p0);
                    Logger.Log(this, "MetaObjectMesh - Point added: " + pName);
                }
            }
        }
Example #2
0
        protected override void ReadExpression(Expression exp)
        {
            Expression eFrom = FindChildren(From_Name);
            Expression eTo   = FindChildren(To_Name);

            Logger.Log(this, "ReadExpression - Read FindChildren");
            from = MetaObjectPoint3d.CreateAndRun <T>(eFrom);
            to   = MetaObjectPoint3d.CreateAndRun <T>(eTo);
            Logger.Log(this, "ReadExpression - Done creating children");
        }
Example #3
0
        protected override void ReadExpression(Expression exp)
        {
            Logger.Log(this, "ReadExpression - Read FindChildren");

            pnts = new List <T>();

            foreach (string pntStr in Point_Names)
            {
                Expression eP = FindChildren(pntStr);
                T          p  = MetaObjectPoint3d.CreateAndRun <T>(eP);
                pnts.Add(p);
            }

            Logger.Log(this, "ReadExpression - Done creating children");
        }