コード例 #1
0
 /// <summary>
 /// Given a set of face indices, creates an array of corner indices
 /// </summary>
 public static IArray <int> FaceIndicesToCornerIndices(this IGeometryAttributes g, IArray <int> faceIndices)
 => (faceIndices.Count * g.NumCornersPerFace)
 .Select(i => g.FaceToCorner(faceIndices[i / g.NumCornersPerFace]) + i % g.NumCornersPerFace);