(List<SceneGraphNode> nodes, out BoundingBox bounds)
| 379 | } |
| 380 | |
| 381 | internal static Transform[] GetTransformsAndBounds(List<SceneGraphNode> nodes, out BoundingBox bounds) |
| 382 | { |
| 383 | var transforms = new Transform[nodes.Count]; |
| 384 | bounds = BoundingBox.Empty; |
| 385 | for (int i = 0; i < nodes.Count; i++) |
| 386 | { |
| 387 | transforms[i] = nodes[i].Transform; |
| 388 | if (nodes[i] is ActorNode actorNode) |
| 389 | { |
| 390 | bounds = BoundingBox.Merge(bounds, actorNode.Actor.BoxWithChildren); |
| 391 | } |
| 392 | } |
| 393 | return transforms; |
| 394 | } |
| 395 | |
| 396 | /// <summary> |
| 397 | /// Removes the file if it exists. |
no test coverage detected