static BvhNode CreateBvhNodeLeaf(NativeSlice <TriangleBounds> triangleBoundsArray) { return(new BvhNode() { bounds = CalcBounds(triangleBoundsArray), triangleIndexs = triangleBoundsArray.Select(n => n.triangleIndex).ToList() }); }