コード例 #1
0
 public void UpdateMaterialAttributes(List <Triangle> triangles, bool isBigEndian)
 {
     if (PresetCollisionPicker != null)
     {
         MaterialAttributeFile = PresetCollisionPicker.GetAttributeFile(triangles, isBigEndian);
     }
 }
コード例 #2
0
        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));
                }
            }
        }