Commit cfe4dca8 authored by VihangiSalgado's avatar VihangiSalgado

Structure of USA

parent 7eeaf7c5
...@@ -201,25 +201,25 @@ ...@@ -201,25 +201,25 @@
this.openInExplorerToolStripMenuItem1, this.openInExplorerToolStripMenuItem1,
this.copyPathToolStripMenuItem1}); this.copyPathToolStripMenuItem1});
this.contextMenuStrip2.Name = "contextMenuStrip2"; this.contextMenuStrip2.Name = "contextMenuStrip2";
this.contextMenuStrip2.Size = new System.Drawing.Size(211, 104); this.contextMenuStrip2.Size = new System.Drawing.Size(190, 76);
// //
// createStepToolStripMenuItem // createStepToolStripMenuItem
// //
this.createStepToolStripMenuItem.Name = "createStepToolStripMenuItem"; this.createStepToolStripMenuItem.Name = "createStepToolStripMenuItem";
this.createStepToolStripMenuItem.Size = new System.Drawing.Size(210, 24); this.createStepToolStripMenuItem.Size = new System.Drawing.Size(189, 24);
this.createStepToolStripMenuItem.Text = "Create Step "; this.createStepToolStripMenuItem.Text = "Create Step ";
this.createStepToolStripMenuItem.Click += new System.EventHandler(this.CreateStepToolStripMenuItem_Click); this.createStepToolStripMenuItem.Click += new System.EventHandler(this.CreateStepToolStripMenuItem_Click);
// //
// openInExplorerToolStripMenuItem1 // openInExplorerToolStripMenuItem1
// //
this.openInExplorerToolStripMenuItem1.Name = "openInExplorerToolStripMenuItem1"; this.openInExplorerToolStripMenuItem1.Name = "openInExplorerToolStripMenuItem1";
this.openInExplorerToolStripMenuItem1.Size = new System.Drawing.Size(210, 24); this.openInExplorerToolStripMenuItem1.Size = new System.Drawing.Size(189, 24);
this.openInExplorerToolStripMenuItem1.Text = "Open in Explorer"; this.openInExplorerToolStripMenuItem1.Text = "Open in Explorer";
// //
// copyPathToolStripMenuItem1 // copyPathToolStripMenuItem1
// //
this.copyPathToolStripMenuItem1.Name = "copyPathToolStripMenuItem1"; this.copyPathToolStripMenuItem1.Name = "copyPathToolStripMenuItem1";
this.copyPathToolStripMenuItem1.Size = new System.Drawing.Size(210, 24); this.copyPathToolStripMenuItem1.Size = new System.Drawing.Size(189, 24);
this.copyPathToolStripMenuItem1.Text = "Copy Path"; this.copyPathToolStripMenuItem1.Text = "Copy Path";
// //
// panel5 // panel5
......
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
<ItemGroup> <ItemGroup>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Structure.cs" />
<Compile Include="StructureTools.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="App.config" /> <None Include="App.config" />
......
...@@ -10,6 +10,7 @@ namespace ConsoleApp1 ...@@ -10,6 +10,7 @@ namespace ConsoleApp1
{ {
static void Main(string[] args) static void Main(string[] args)
{ {
} }
} }
} }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
// custome file structure for Assist
public class Structure
{
// Region for all USA structure
#region usaFile
//USA main format structure
public struct usaFile
{
public char[] header; // usa header
public UInt64 fileSize; // file size
public UInt64 version; // vrsion
public string userName; // user nam of the person
public string step; // step of the model
public string comments; // cooments about file
public geometry[] geometries; // geometry of the 3D model
public apearance[] apearances; // aparance of the 3D model
public scene Scene; // scene of the 3D model
public animation[] animations; // animation of the 3D model
}
// Encording geometry of the 3D model
public struct geometry
{
public UInt16 serfaceID; // ID of the each triangle serface
public UIntPtr point1; // first vertx of the triangle
public UIntPtr point2; // second vertex of the triangle
public UIntPtr point3; // third vertex of the triangle
public UIntPtr nPoint1; // first vertex of the outword normal vector
public UIntPtr nPoint2; // second vertex of the outword normal vector
}
// storing apearance of the 3D model
public struct apearance
{
public UInt16 serfaceID2; //ID of the each serface
public UInt32 aColor; // colour of the ech serface
public UInt64 texture; // texture of the serface
public UInt32 matirial; // material of ther serface
}
//saving scene informtion
public struct scene
{
public camera cam;
public light lightSource;
}
// camra information
public struct camera
{
public UIntPtr magPoint; // magnification point of the camera
public UIntPtr location; // Location of the camra
public UIntPtr direction; // direction of thee camera
public bool up; //which dirction is the up
}
//light source information
public struct light
{
public UIntPtr lLoction; // direction of the light source
public UInt32 lColour; // colour of the source light
public UInt32 intensity; // intencity of the light source
}
//Encording Animation
public struct animation
{
public float rotation; // rotation of the virtual bone
public float scale; // scale of the bone
public UIntPtr shear; // shear of the bone
public UIntPtr translation; // translation of th bone
}
#endregion
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
public static class StructureTools
{
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment