2025-09-26 10:57:15 -04:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.BSP
|
2025-09-26 10:57:15 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The edges delimit the face and further refer to the vertices of the
|
2025-10-30 21:21:56 -04:00
|
|
|
/// face. Each edge is pointing to the start and end vertex of the edge.
|
2025-09-26 10:57:15 -04:00
|
|
|
/// </summary>
|
2025-10-30 21:21:56 -04:00
|
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(GoldSrc)"/>
|
2025-09-26 10:57:15 -04:00
|
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(Source)"/>
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public sealed class Edge
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indices into vertex array
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]
|
2025-10-30 21:21:56 -04:00
|
|
|
public ushort[] VertexIndices = new ushort[2];
|
2025-09-26 10:57:15 -04:00
|
|
|
}
|
2025-10-30 21:21:56 -04:00
|
|
|
}
|