-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added converter utility project to convert BULLFROG OBJECT DATA to wa…
…vefront OBJ
- Loading branch information
Showing
14 changed files
with
1,435 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/> | ||
</startup> | ||
</configuration> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Threading; | ||
using System.Windows.Forms; | ||
|
||
namespace ObjectsConverter | ||
{ | ||
public partial class Form1 : Form | ||
{ | ||
public Form1() | ||
{ | ||
Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; | ||
InitializeComponent(); | ||
} | ||
|
||
private void runButton_Click(object sender, EventArgs e) | ||
{ | ||
OpenFileDialog dialog = new OpenFileDialog(); | ||
dialog.RestoreDirectory = true; | ||
dialog.Filter = "Bullfrog DAT file|*.dat"; | ||
|
||
if (dialog.ShowDialog() != DialogResult.OK) return; | ||
|
||
ObjectDatFile file = ObjectDatFile.ReadFile(dialog.FileName); | ||
|
||
if (file.Error != "") | ||
{ | ||
outBox.Text = file.Error; | ||
return; | ||
} | ||
|
||
outBox.Text = file.ToWavefrontOBJ(); | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.