Package org.recast4j.recast
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[]areasThe area id assigned to each polygon.float[]bmaxThe maximum bounds in world space.float[]bminThe minimum bounds in world space.intborderSizeThe AABB border size used to generate the source data from which the mesh was derived.floatchThe height of each cell.floatcsThe size of each cell.int[]flagsThe user defined flags for each polygon.floatmaxEdgeErrorThe max error of the polygon edges in the mesh.intmaxpolysThe number of allocated polygons.intnpolysThe number of polygons.intnvertsThe number of vertices.intnvpThe maximum number of vertices per polygon.int[]polysPolygon and neighbor data.int[]regsThe region id assigned to each polygon.int[]vertsThe 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[] vertsThe mesh vertices. [Form: (x, y, z) coordinates * #nverts] -
polys
public int[] polysPolygon and neighbor data. [Length: #maxpolys * 2 * #nvp] -
regs
public int[] regsThe region id assigned to each polygon. [Length: #maxpolys] -
areas
public int[] areasThe area id assigned to each polygon. [Length: #maxpolys] -
nverts
public int nvertsThe number of vertices. -
npolys
public int npolysThe number of polygons. -
nvp
public int nvpThe maximum number of vertices per polygon. -
maxpolys
public int maxpolysThe number of allocated polygons. -
flags
public int[] flagsThe user defined flags for each polygon. [Length: #maxpolys] -
bmin
public final float[] bminThe minimum bounds in world space. [(x, y, z)] -
bmax
public final float[] bmaxThe maximum bounds in world space. [(x, y, z)] -
cs
public float csThe size of each cell. (On the xz-plane.) -
ch
public float chThe height of each cell. (The minimum increment along the y-axis.) -
borderSize
public int borderSizeThe AABB border size used to generate the source data from which the mesh was derived. -
maxEdgeError
public float maxEdgeErrorThe max error of the polygon edges in the mesh.
-
-
Constructor Details
-
PolyMesh
public PolyMesh()
-