public AFrameNode Create(BoxBufferGeometryElem el) { var node = new AFrameNode("a-box"); node.AddAttribute("width", el.Width); node.AddAttribute("height", el.Height); node.AddAttribute("depth", el.Depth); return(node); }
public void Visit(BoxBufferGeometryElem el) { using (var scope = new JsonScopeObjectWriter(writer)) { scope.WriteKeyValue("uuid", el.Uuid); scope.WriteKeyValue("type", el.Type); scope.WriteKeyValue("width", el.Width); scope.WriteKeyValue("height", el.Height); scope.WriteKeyValue("depth", el.Depth); } }
public void Visit(BoxBufferGeometryElem el) { Node = factory.Create(el); }