/
Program.cs
40 lines (35 loc) · 1.06 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Media3D;
using Deyo.Vrml.FormatProvider;
using Deyo.Vrml.Geometries;
using Deyo.Vrml.Model;
using Deyo.Vrml.Model.Animations;
using Deyo.Vrml.Model.Shapes;
namespace CrossBowCreator
{
class Program
{
private const string ExportFileName = "CrossBow-DeyanYosifov-M24906.wrl";
static void Main(string[] args)
{
VrmlDocument document = new CrossBowDocument();
if (File.Exists(ExportFileName))
{
File.Delete(ExportFileName);
}
using (Stream fileStream = new FileStream(ExportFileName, FileMode.OpenOrCreate))
{
VrmlFormatProvider provider = new VrmlFormatProvider();
provider.Export(document, fileStream);
}
Process.Start(Directory.GetCurrentDirectory());
Process.Start(ExportFileName);
}
}
}