private void ConvertToMaterialPreset()
        {
            using (var dialog = new ModelConverterOptionsDialog(false))
            {
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                ModelPackConverterOptions options = new ModelPackConverterOptions()
                {
                    MaterialPreset = dialog.MaterialPreset,
                    Version        = dialog.Version
                };
                Replace(MaterialDictionary.ConvertToMaterialPreset(Data, options));
            }
        }
        public static Model ConvertAssimpModel(string path)
        {
            using (var dialog = new ModelConverterOptionsDialog(false))
            {
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return(null);
                }

                ModelConverterOptions options = new ModelConverterOptions()
                {
                    MaterialPreset       = dialog.MaterialPreset,
                    Version              = dialog.Version,
                    ConvertSkinToZUp     = dialog.ConvertSkinToZUp,
                    GenerateVertexColors = dialog.GenerateVertexColors
                };

                return(ModelConverter.ConvertFromAssimpScene(path, options));
            }
        }