| 178 | } |
| 179 | |
| 180 | void 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 | |
| 188 | void MeshData::CalculateSphere(BoundingSphere& result) const |
| 189 | { |