private static int GetIndicesCount(Pattern pattern, Vector3i stripeCount) => GetIndicesCount(pattern, stripeCount.X, stripeCount.Y, stripeCount.Z);
/// <summary> /// Get the coordinates of all points in a regular 3D xyz lattice, where -1 <= x,y,z <= +1. /// Points are returned ordered by x value, then by y value, and finally by z value. /// In other words, x varies most slowly, and z most quickly. /// To get the points on a regular 2D grid, set the missing axis strip count to 0. /// To get the points along a single axis, set both missing axes' strip counts to 0. /// </summary> /// <param name="stripeCount">The number of steps along each axis.</param> /// <returns> /// (1, 2 or 3) * (cx+1)(cy+1)(cz+1) floats, being the coordinates (x, or xy, or xyz) of the points in the lattice. /// </returns> private static IEnumerable <float> GetCoords(Vector3i stripeCount) => GetCoords(stripeCount.X, stripeCount.Y, stripeCount.Z);
private static int GetCoordsCount(Vector3i stripeCount) => GetCoordsCount(stripeCount.X, stripeCount.Y, stripeCount.Z);
private static IEnumerable <int> GetIndices(Pattern pattern, Vector3i stripeCount) => GetIndices(pattern, stripeCount.X, stripeCount.Y, stripeCount.Z);