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

Method CalculateBox

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

Source from the content-addressed store, hash-verified

178}
179
180void MeshData::CalculateBox(BoundingBox& result) const
181{
182 if (Positions.HasItems())
183 BoundingBox::FromPoints(Positions.Get(), Positions.Count(), result);
184 else
185 result = BoundingBox::Zero;
186}
187
188void MeshData::CalculateSphere(BoundingSphere& result) const
189{

Callers 2

GetBoxMethod · 0.80
AddMethod · 0.80

Calls 3

HasItemsMethod · 0.45
GetMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected