/ Assets / scripts / SilhouetteStrokeEdge.cs
SilhouetteStrokeEdge.cs
 1  using System.Runtime.InteropServices;
 2  using UnityEngine;
 3  
 4  [StructLayout(LayoutKind.Sequential, Pack = 1)]
 5  public struct SilhouetteStrokeEdge
 6  {
 7      public Vector3 pos;
 8      public int adj;
 9      public Vector3 faceNormal;
10      public uint minPoint;
11      public uint rank;            // hop count to tail
12      public uint flags;
13      public float distFromTail;   // cumulative geometric distance to tail (0 at tail)
14  
15      public uint totalStrokeLength; // total length of the stroke that contains this point
16  
17      public uint strokePointsOffset; // Offset to the stroke points array
18  
19      public static int SizeOf => Marshal.SizeOf(typeof(SilhouetteStrokeEdge));
20  }