コード例 #1
0
 static BvhNode CreateBvhNodeLeaf(NativeSlice <TriangleBounds> triangleBoundsArray)
 {
     return(new BvhNode()
     {
         bounds = CalcBounds(triangleBoundsArray),
         triangleIndexs = triangleBoundsArray.Select(n => n.triangleIndex).ToList()
     });
 }