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

Method GetBox

Source/Engine/Graphics/Models/ModelData.cpp:395–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395BoundingBox ModelLodData::GetBox() const
396{
397 if (Meshes.IsEmpty())
398 return BoundingBox::Empty;
399 BoundingBox bounds;
400 Meshes[0]->CalculateBox(bounds);
401 for (int32 i = 1; i < Meshes.Count(); i++)
402 {
403 BoundingBox b;
404 Meshes[i]->CalculateBox(b);
405 BoundingBox::Merge(bounds, b, bounds);
406 }
407 return bounds;
408}
409
410void ModelData::CalculateLODsScreenSizes()
411{

Callers 1

RunDeformersMethod · 0.45

Calls 4

CalculateBoxMethod · 0.80
MergeFunction · 0.50
IsEmptyMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected