/// <summary> /// コンバート /// </summary> /// <param name="parameter"></param> private void Convert(object parameter) { STLLoader stlModel = new STLLoader(InputFilePath); if (!stlModel.Load()) { MessageBox.Show( "STLのLoadに失敗しました。", "エラー", MessageBoxButton.OK, MessageBoxImage.Error); return; } HalfEdge halfEdge = new HalfEdge(); if (!halfEdge.Create(stlModel.Vertex)) { MessageBox.Show( "STLのConvertに失敗しました。", "エラー", MessageBoxButton.OK, MessageBoxImage.Error); return; } halfEdge.WriteFile(OutputFilePath, SelectedVersion, DoBinary); MessageBox.Show( "STLのConvertに成功しました。", "成功", MessageBoxButton.OK, MessageBoxImage.Information); }