INNER CODE UNIT · C#

i

Blotch3D/Blotch3D · src/BlGeometry.cs:440

					var i = x + y * numX;

					grid[i].TextureCoordinate.X = (float)offsetX;
					grid[i].TextureCoordinate.Y = (float)y/numY;

					grid[i].Position = pos;
				}
				matrixy = Matrix.Multiply(matrixy, m);
			}
			return grid;
		}

		/// <summary>
		///  Given a row-major [y, x] regular grid of vertices, return an array of triangles.
		///  numY is assumed to be the length of vertices/numX.
		/// </summary>
		/// <param name="vertices">A flattened row-major array of points</param>
		/// <param name="numX">The number of X elements in a row</param>

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…