36
30
public interface PhysicalScene
38
32
// Returns the number of surfaces in the physical scene
39
int NumPhysicalSurfaces();
40
34
// Returns the surface at index i
41
PhysicalSurface GetPhysicalSurface(int i);
35
PhysicalSurface GetSurface(int i);
40
public struct StartingPosition
42
public Math3D.Vector3 Position;
43
public Math3D.Quaternion Orientation;
45
48
public interface LogicalScene
47
50
int NumStartingPositions();
48
51
StartingPosition GetStartingPosition(int i);
56
public interface VisualMesh
58
// Returns the list of vertices
59
Vector3[] GetVertices();
60
// Returns the number of vertices
63
// Returns the list of normals
64
Vector3[] GetNormals();
65
// Returns the number of normals
68
// Returns the list of tangents
69
Vector2[] GetTangents();
70
// Returns the number of tangents
73
// Returns the list of texture coordinates
74
Vector2[] GetTexcoords();
75
// Returns the number of texture coordinates
78
// Returns the list of indices, each 3 indices gives a triangle
80
// Returns the number of indices
83
// Material associated with this mesh
84
string GetMaterialName();
87
// A material with its attributes
88
public struct VisualMaterial
90
public string Name; // Name of the material
91
public string Type; // Type of material: shader to apply
92
// Shader's parameters
93
public System.Collections.Generic.Dictionary<string, string> StringProperties;
94
public System.Collections.Generic.Dictionary<string, int> IntProperties;
95
public System.Collections.Generic.Dictionary<string, double> FloatProperties;
51
98
public interface VisualScene
100
// Returns the number of meshes composing the track
102
// Returns mesh at index i
103
VisualMesh GetMesh(int i);
105
// Returns the number of materials
107
// Returns material at index i
108
VisualMaterial GetMaterial(int i);
55
112
public interface UTI
60
117
PhysicalScene PhysicalScene { get; }
61
VisualScene VisualScene { get; }
62
LogicalScene LogicalScene { get; }
118
VisualScene VisualScene { get; }
119
LogicalScene LogicalScene { get; }
64
121
string GetFullPath(string fileName);