RecastPolyList

Engine/source/navigation/recastPolyList.h

Represents polygons in the same manner as the .obj file format.

More...

AbstractPolyList

bool

Are we empty of data?

Adds a point to the poly list, and returns an ID number for that point.

Adds a plane to the poly list, and returns an ID number for that point.

begin(BaseMatInstance * material, U32 surfaceKey)

Start a surface.

plane(U32 v1, U32 v2, U32 v3)

Indicate the plane of the surface.

Indicate the plane of the surface.

plane(const U32 index)

Indicate the plane of the surface.

vertex(U32 vi)

Reference a vertex which is in this surface.

end()

Mark the end of a surface.

Protected Attributes

Number of triangles defined.

Number of vertices defined.

Store a list of planes - not actually used.

Size of triangle array.

S32 *

Array of triangle vertex indices. Size ntris*3.

Size of vertex array.

F32 *

Array of vertex coordinates. Size nverts*3.

Index of vertex we're adding to the current triangle.

Public Functions

Default constructor.

Default destructor.

Protected Functions

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()

Protected Functions

getIndexedPlane(const U32 index)

Reimplemented from: AbstractPolyList