Package org.recast4j.recast
Class PolyMesh
java.lang.Object
org.recast4j.recast.PolyMesh
Represents a polygon mesh suitable for use in building a navigation mesh.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]The area id assigned to each polygon.final float[]The maximum bounds in world space.final float[]The minimum bounds in world space.intThe AABB border size used to generate the source data from which the mesh was derived.floatThe height of each cell.floatThe size of each cell.int[]The user defined flags for each polygon.floatThe max error of the polygon edges in the mesh.intThe number of allocated polygons.intThe number of polygons.intThe number of vertices.intThe 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 -
Method Summary
-
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()
-