MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetBounds

Method GetBounds

Source/Engine/Graphics/Models/MeshDeformation.cpp:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void 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
51void MeshDeformation::Clear()
52{

Callers

nothing calls this directly

Calls 1

GetKeyFunction · 0.70

Tested by

no test coverage detected