Mesh.cs 896 B

123456789101112131415161718192021222324252627282930313233
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using System;
  4. using System.Runtime.CompilerServices;
  5. using System.Runtime.InteropServices;
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Rendering
  9. * @{
  10. */
  11. public partial class Mesh
  12. {
  13. /// <summary>
  14. /// Returns local bounds of the geometry contained in the vertex buffers for all sub-meshes.
  15. /// </summary>
  16. public Bounds Bounds
  17. {
  18. get
  19. {
  20. AABox box;
  21. Sphere sphere;
  22. Internal_getBounds(mCachedPtr, out box, out sphere);
  23. return new Bounds(box, sphere);
  24. }
  25. }
  26. }
  27. /** @} */
  28. }