Example #1
0
 /// <summary>Copy transparent triangle indices of the mesh, downcasting values to 16-bit integers</summary>
 public static void copyTransparentTriangles(this iTriangleMesh mesh, Span <ushort> span, int baseVertex)
 {
     unsafe
     {
         fixed(ushort *pointer = span)
         {
             mesh.copyTransparentTriangles((IntPtr)pointer, baseVertex, 2);
         }
     }
 }
 public void transparent(iTriangleMesh mesh, Span <uint> span, int baseVertex) =>
 mesh.copyTransparentTriangles(span, baseVertex);