Пример #1
0
        public Mesh GetMesh(TimeValue t, bool evalHidden)
        {
            // Retrieve the TriObject from the node
            IObjectState state = _Node.EvalWorldState(t, evalHidden);
            if (state == null)
                return null;

            IObject obj = state.Obj;
            if (obj == null)
                return null;

            SceneObject o = new SceneObject(obj);
            return o.GetMesh(t);
        }
Пример #2
0
 public Node AddNewNode(SceneObject o, string name)
 {
     Node n = Create(o, name);
     Attach(n);
     return n;
 }
Пример #3
0
 public Node AddNewNode(SceneObject o)
 {
     Node n = new Node(Kernel._Interface.CreateObjectNode(o._Object));
     _Node.AttachChild(n._Node, true);
     return n;
 }
Пример #4
0
 /// <summary>
 /// Creates a named node attached to a particular scene object. 
 /// </summary>
 /// <param name="o"></param>
 /// <param name="name"></param>
 /// <returns></returns>
 public static Node Create(SceneObject o, string name)
 {
     return CreateWrapper<Node>(Kernel._Interface.CreateObjectNode(o._Object, name));
 }