INNER CODE UNIT · C#

center

Blotch3D/Blotch3D · src/BlGeometry.cs:561

			var center = (minExtents + maxExtents) / 2;

			var radius = (center - minExtents).Length();

			var sphere = new BoundingSphere(center, radius);

			return sphere;
		}

		/// <summary>
		/// Removes triangles that have zero area. Typically called after a transform.
		/// </summary>
		/// <param name="triangles">The input triangles (i.e. NOT a regular grid)</param>
		/// <returns>Output triangles</returns>
		static public VertexPositionNormalTexture[] CullEmptyTriangles(VertexPositionNormalTexture[] triangles)
		{
			var newList = new List<VertexPositionNormalTexture>();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…