RecastPolyList
Engine/source/navigation/recastPolyList.h
Represents polygons in the same manner as the .obj file format.
AbstractPolyList
bool
isEmpty()
Are we empty of data?
begin(BaseMatInstance * material, U32 surfaceKey)
Start a surface.
Data interface
Protected Attributes
Public Functions
Protected Functions
getIndexedPlane(const U32 index)
Another inherited utility function.
Detailed Description
Represents polygons in the same manner as the .obj file format.
Handy for padding data to Recast, since it expects this data format. At the moment, this class only accepts triangles.
AbstractPolyList
isEmpty()
Reimplemented from: AbstractPolyList
addPoint(const Point3F & p)
Reimplemented from: AbstractPolyList
addPlane(const PlaneF & plane)
Reimplemented from: AbstractPolyList
begin(BaseMatInstance * material, U32 surfaceKey)
Reimplemented from: AbstractPolyList
plane(U32 v1, U32 v2, U32 v3)
Reimplemented from: AbstractPolyList
plane(const PlaneF & p)
Reimplemented from: AbstractPolyList
plane(const U32 index)
Reimplemented from: AbstractPolyList
vertex(U32 vi)
Reimplemented from: AbstractPolyList
end()
Reimplemented from: AbstractPolyList
Data interface
getVertCount()
getVerts()
getTriCount()
getTris()
clear()
Protected Attributes
U32 ntris
Number of triangles defined.
U32 nverts
Number of vertices defined.
Vector< PlaneF > planes
Store a list of planes - not actually used.
U32 tricap
Size of triangle array.
S32 * tris
Array of triangle vertex indices. Size ntris*3.
U32 vertcap
Size of vertex array.
F32 * verts
Array of vertex coordinates. Size nverts*3.
U8 vidx
Index of vertex we're adding to the current triangle.
Public Functions
RecastPolyList()
Default constructor.
~RecastPolyList()
Default destructor.
renderWire()