Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020_068
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2020_068
2020_068
Commits
cfe4dca8
Commit
cfe4dca8
authored
Jul 13, 2020
by
VihangiSalgado
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Structure of USA
parent
7eeaf7c5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
107 additions
and
4 deletions
+107
-4
AssistPlugin/WindowsFormsApp1/Form5.Designer.cs
AssistPlugin/WindowsFormsApp1/Form5.Designer.cs
+4
-4
New_File_Type/ConsoleApp1/ConsoleApp1.csproj
New_File_Type/ConsoleApp1/ConsoleApp1.csproj
+2
-0
New_File_Type/ConsoleApp1/Program.cs
New_File_Type/ConsoleApp1/Program.cs
+1
-0
New_File_Type/ConsoleApp1/Structure.cs
New_File_Type/ConsoleApp1/Structure.cs
+88
-0
New_File_Type/ConsoleApp1/StructureTools.cs
New_File_Type/ConsoleApp1/StructureTools.cs
+12
-0
No files found.
AssistPlugin/WindowsFormsApp1/Form5.Designer.cs
View file @
cfe4dca8
...
@@ -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
...
...
New_File_Type/ConsoleApp1/ConsoleApp1.csproj
View file @
cfe4dca8
...
@@ -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"
/>
...
...
New_File_Type/ConsoleApp1/Program.cs
View file @
cfe4dca8
...
@@ -10,6 +10,7 @@ namespace ConsoleApp1
...
@@ -10,6 +10,7 @@ namespace ConsoleApp1
{
{
static
void
Main
(
string
[]
args
)
static
void
Main
(
string
[]
args
)
{
{
}
}
}
}
}
}
New_File_Type/ConsoleApp1/Structure.cs
0 → 100644
View file @
cfe4dca8
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
}
}
New_File_Type/ConsoleApp1/StructureTools.cs
0 → 100644
View file @
cfe4dca8
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
ConsoleApp1
{
public
static
class
StructureTools
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment