internal static ModelNode GenerateModel(DrawableModelDictionary drawableModelDictionary, TextureFile[] textures) { var dictionaryTypeGroup = new Model3DGroup(); var dictionaryTypeNode = new ModelNode { DataModel = drawableModelDictionary, Model3D = dictionaryTypeGroup, Name = "Dictionary", NoCount = true }; foreach (var entry in drawableModelDictionary.Entries) { var drawableNode = GenerateModel(entry, textures); drawableNode.NoCount = false; dictionaryTypeGroup.Children.Add(drawableNode.Model3D); dictionaryTypeNode.Children.Add(drawableNode); } return(dictionaryTypeNode); }
internal static ModelNode GenerateModel(DrawableModelDictionary drawableModelDictionary, TextureFile[] textures) { var dictionaryTypeGroup = new Model3DGroup(); var dictionaryTypeNode = new ModelNode { DataModel = drawableModelDictionary, Model3D = dictionaryTypeGroup, Name = "Dictionary", NoCount = true }; foreach (var entry in drawableModelDictionary.Entries) { var drawableNode = GenerateModel(entry, textures); drawableNode.NoCount = false; dictionaryTypeGroup.Children.Add(drawableNode.Model3D); dictionaryTypeNode.Children.Add(drawableNode); } return dictionaryTypeNode; }