public Mesh(float[] vertices, int[] indices) { _vertices = vertices; _indices = indices; Bounds = new Aabb(); for (var i = 0; i < vertices.Length; i += 3) { Bounds.Aggregate(vertices[i], vertices[i + 1], vertices[i + 2]); } }
public Mesh(float[] vertices, int[] indices) { _vertices = vertices; _indices = indices; Bounds = new Aabb(); for (var i = 0; i < vertices.Length; i += 3) { Bounds.Aggregate(vertices[i], vertices[i + 1], vertices[i + 2]); } }