INNER CODE UNIT · C#

newTriangles

Blotch3D/Blotch3D · src/BlGeometry.cs:328

						var newTriangles = new VertexPositionNormalTexture[triangles.Length + topTriangles.Length];

						triangles.CopyTo(newTriangles, 0);
						topTriangles.CopyTo(newTriangles, triangles.Length);

						triangles = newTriangles;
					}

					{
						int yDim = heightMap.GetLength(0);
						int xDim = heightMap.GetLength(1);

						double[,] bottomMap = new double[1, xDim];

						Buffer.BlockCopy(heightMap, 0, bottomMap, 0, sizeof(double) * xDim);

						var bottomGrid = CalcCylindroidVerticesAndTexcoords(numHorizVertices, 2, 0, bottomMap);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…