public void ExtractCollisonMesh(string FilePath)
{
FileStream FS = new FileStream(FilePath, FileMode.Create);
StreamWriter SW = new StreamWriter(FS);
SW.WriteLine("# ------------------------------------");
SW.WriteLine("# Halo 2 BSP Collision Mesh - Extracted with Entity");
SW.WriteLine("# ------------------------------------");
for (int x = 0; x < Vertices.Length; x++)
{
string temps = "v " + this.Vertices[x].X + " " + this.Vertices[x].Y + " " + this.Vertices[x].Z;
SW.WriteLine(temps);
}
for (int x = 0; x < Faces.Length; x += 3)
{
string temps = "f " + (Faces[x] + 1) + " " + (Faces[x + 1] + 1) + " " + (Faces[x + 2] + 1);
SW.WriteLine(temps);
}
SW.Close();
FS.Close();
}