INNER CODE UNIT · C#

maxExtents

Blotch3D/Blotch3D · src/BlGeometry.cs:539

			var maxExtents = new Vector3(-1e30f, -1e30f, -1e30f);

			var len = vertices.Length;
			for(int n=0; n<len; n++)
			{
				var pos = vertices[n].Position;

				if (minExtents.X > pos.X)
					minExtents.X = pos.X;
				if (minExtents.Y > pos.Y)
					minExtents.Y = pos.Y;
				if (minExtents.Z > pos.Z)
					minExtents.Z = pos.Z;

				if (maxExtents.X < pos.X)
					maxExtents.X = pos.X;
				if (maxExtents.Y < pos.Y)
					maxExtents.Y = pos.Y;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…