Пример #1
0
 /// <summary>Copy opaque triangle indices of the mesh, downcasting values to 16-bit integers</summary>
 public static void copyOpaqueTriangles(this iTriangleMesh mesh, Span <ushort> span, int baseVertex)
 {
     unsafe
     {
         fixed(ushort *pointer = span)
         {
             mesh.copyOpaqueTriangles((IntPtr)pointer, baseVertex, 2);
         }
     }
 }
Пример #2
0
 // Yep, exact copy-paste of the above. Sometimes C++ templates are just better.
 public void opaque(iTriangleMesh mesh, Span <uint> span, int baseVertex) =>
 mesh.copyOpaqueTriangles(span, baseVertex);