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); }
public Node AddNewNode(SceneObject o, string name) { Node n = Create(o, name); Attach(n); return n; }
public Node AddNewNode(SceneObject o) { Node n = new Node(Kernel._Interface.CreateObjectNode(o._Object)); _Node.AttachChild(n._Node, true); return n; }
/// <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)); }