/// <summary> /// Parses the 3DXML discription and translate its to the internal IModel representation /// </summary> /// <returns></returns> public IModel ToModel() { var model = new BasicLoader.Implementation.Model.Model { Name = Header.Name }; return(model); }
/// <summary> /// Parses the 3DXML discription and translate its to the internal IModel representation /// </summary> /// <returns>A model implementation</returns> public IModel ToModel() { // the root element should have the id 1 var product = Get <Reference3D>(1); var parts = Traverse(product, null).ToList(); // get all direct children of the root element var model = new BasicLoader.Implementation.Model.Model { Name = Header.Name, Author = Header.Author, Parts = parts.ToList() }; return(model); }
/// <summary> /// Parses the 3DXML discription and translate its to the internal IModel representation /// </summary> /// <returns></returns> public IModel ToModel() { var model = new BasicLoader.Implementation.Model.Model {Name = Header.Name}; return model; }