RcPolyMeshDetail.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
  3. recast4j copyright (c) 2015-2019 Piotr Piastucki piotr@jtilia.org
  4. DotRecast Copyright (c) 2023 Choi Ikpil ikpil@naver.com
  5. This software is provided 'as-is', without any express or implied
  6. warranty. In no event will the authors be held liable for any damages
  7. arising from the use of this software.
  8. Permission is granted to anyone to use this software for any purpose,
  9. including commercial applications, and to alter it and redistribute it
  10. freely, subject to the following restrictions:
  11. 1. The origin of this software must not be misrepresented; you must not
  12. claim that you wrote the original software. If you use this software
  13. in a product, an acknowledgment in the product documentation would be
  14. appreciated but is not required.
  15. 2. Altered source versions must be plainly marked as such, and must not be
  16. misrepresented as being the original software.
  17. 3. This notice may not be removed or altered from any source distribution.
  18. */
  19. namespace DotRecast.Recast
  20. {
  21. /**
  22. * Contains triangle meshes that represent detailed height data associated with the polygons in its associated polygon
  23. * mesh object.
  24. */
  25. public class RcPolyMeshDetail
  26. {
  27. /** The sub-mesh data. [Size: 4*#nmeshes] */
  28. public int[] meshes;
  29. /** The mesh vertices. [Size: 3*#nverts] */
  30. public float[] verts;
  31. /** The mesh triangles. [Size: 4*#ntris] */
  32. public int[] tris;
  33. /** The number of sub-meshes defined by #meshes. */
  34. public int nmeshes;
  35. /** The number of vertices in #verts. */
  36. public int nverts;
  37. /** The number of triangles in #tris. */
  38. public int ntris;
  39. }
  40. }