Class PolyMesh

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

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

    Fields
    Modifier and Type
    Field
    Description
    int[]
    The area id assigned to each polygon.
    final float[]
    The maximum bounds in world space.
    final float[]
    The minimum bounds in world space.
    int
    The AABB border size used to generate the source data from which the mesh was derived.
    float
    The height of each cell.
    float
    The size of each cell.
    int[]
    The user defined flags for each polygon.
    float
    The max error of the polygon edges in the mesh.
    int
    The number of allocated polygons.
    int
    The number of polygons.
    int
    The number of vertices.
    int
    The maximum number of vertices per polygon.
    int[]
    Polygon and neighbor data.
    int[]
    The region id assigned to each polygon.
    int[]
    The mesh vertices.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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()