| 36 | } |
| 37 | |
| 38 | void MeshDeformation::GetBounds(int32 lodIndex, int32 meshIndex, BoundingBox& bounds) const |
| 39 | { |
| 40 | const auto key = GetKey(lodIndex, meshIndex, MeshBufferType::Vertex0); |
| 41 | for (MeshDeformationData* deformation : _deformations) |
| 42 | { |
| 43 | if (deformation->Key == key) |
| 44 | { |
| 45 | bounds = deformation->Bounds; |
| 46 | break; |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | void MeshDeformation::Clear() |
| 52 | { |