Class PolyMesh

java.lang.Object
org.recast4j.recast.PolyMesh

public class PolyMesh
extends java.lang.Object
Represents a polygon mesh suitable for use in building a navigation mesh.
  • Field Summary

    Fields
    Modifier and Type Field Description
    int[] areas
    The area id assigned to each polygon.
    float[] bmax
    The maximum bounds in world space.
    float[] bmin
    The minimum bounds in world space.
    int borderSize
    The AABB border size used to generate the source data from which the mesh was derived.
    float ch
    The height of each cell.
    float cs
    The size of each cell.
    int[] flags
    The user defined flags for each polygon.
    float maxEdgeError
    The max error of the polygon edges in the mesh.
    int maxpolys
    The number of allocated polygons.
    int npolys
    The number of polygons.
    int nverts
    The number of vertices.
    int nvp
    The maximum number of vertices per polygon.
    int[] polys
    Polygon and neighbor data.
    int[] regs
    The region id assigned to each polygon.
    int[] verts
    The mesh vertices.
  • Constructor Summary

    Constructors
    Constructor Description
    PolyMesh()  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • verts

      public int[] verts
      The mesh vertices. [Form: (x, y, z) coordinates * #nverts]
    • polys

      public int[] polys
      Polygon and neighbor data. [Length: #maxpolys * 2 * #nvp]
    • regs

      public int[] regs
      The region id assigned to each polygon. [Length: #maxpolys]
    • areas

      public int[] areas
      The area id assigned to each polygon. [Length: #maxpolys]
    • nverts

      public int nverts
      The number of vertices.
    • npolys

      public int npolys
      The number of polygons.
    • nvp

      public int nvp
      The maximum number of vertices per polygon.
    • maxpolys

      public int maxpolys
      The number of allocated polygons.
    • flags

      public int[] flags
      The user defined flags for each polygon. [Length: #maxpolys]
    • bmin

      public final float[] bmin
      The minimum bounds in world space. [(x, y, z)]
    • bmax

      public final float[] bmax
      The maximum bounds in world space. [(x, y, z)]
    • cs

      public float cs
      The size of each cell. (On the xz-plane.)
    • ch

      public float ch
      The height of each cell. (The minimum increment along the y-axis.)
    • borderSize

      public int borderSize
      The AABB border size used to generate the source data from which the mesh was derived.
    • maxEdgeError

      public float maxEdgeError
      The max error of the polygon edges in the mesh.
  • Constructor Details

    • PolyMesh

      public PolyMesh()