public void UpdateMaterialAttributes(List <Triangle> triangles, bool isBigEndian)
 {
     if (PresetCollisionPicker != null)
     {
         MaterialAttributeFile = PresetCollisionPicker.GetAttributeFile(triangles, isBigEndian);
     }
 }
        public static void SaveKCL(KCLFile kcl, string fileName,
                                   MaterialAttributeFileBase AttributeFile)
        {
            SaveFileDialog sfd = new SaveFileDialog();

            sfd.Filter   = "Supported Formats|*.kcl;";
            sfd.FileName = Path.GetFileNameWithoutExtension(fileName);
            if (sfd.ShowDialog() == DialogResult.OK)
            {
                kcl.Save(sfd.FileName);
                if (AttributeFile != null)
                {
                    AttributeFile.Save(AttributeFile.SetupFileName(sfd.FileName));
                }
            }
        }