-
-
Notifications
You must be signed in to change notification settings - Fork 911
/
GeometricMeshData.cs
38 lines (34 loc) · 1.25 KB
/
GeometricMeshData.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
// Copyright (c) Stride contributors (https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using Stride.Core;
namespace Stride.Graphics
{
/// <summary>
/// A geometric data.
/// </summary>
/// <typeparam name="T"></typeparam>
public class GeometricMeshData<T> : ComponentBase where T : struct, IVertex
{
public GeometricMeshData(T[] vertices, int[] indices, bool isLeftHanded)
{
Vertices = vertices;
Indices = indices;
IsLeftHanded = isLeftHanded;
}
/// <summary>
/// Gets or sets the vertices.
/// </summary>
/// <value>The vertices.</value>
public T[] Vertices { get; set; }
/// <summary>
/// Gets or sets the indices.
/// </summary>
/// <value>The indices.</value>
public int[] Indices { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is left handed.
/// </summary>
/// <value><c>true</c> if this instance is left handed; otherwise, <c>false</c>.</value>
public bool IsLeftHanded { get; set; }
}
}