![]() |
Recast Navigation
Navigation-mesh Toolset for Games
|
Represents a simple, non-overlapping contour in field space. More...
#include <Recast.h>
Public Attributes | |
| int * | verts |
| Simplified contour vertex and connection data. [Size: 4 * nverts]. | |
| int | nverts |
| The number of vertices in the simplified contour. | |
| int * | rverts |
| Raw contour vertex and connection data. [Size: 4 * nrverts]. | |
| int | nrverts |
| The number of vertices in the raw contour. | |
| unsigned short | reg |
| The region id of the contour. | |
| unsigned char | area |
| The area id of the contour. | |
Represents a simple, non-overlapping contour in field space.
A contour only exists within the context of a rcContourSet object.
While the height of the contour's border may vary, the contour will always form a simple polygon when projected onto the xz-plane.
Example of converting vertices into world space:
| unsigned char rcContour::area |
The area id of the contour.
| int rcContour::nrverts |
The number of vertices in the raw contour.
| int rcContour::nverts |
The number of vertices in the simplified contour.
| unsigned short rcContour::reg |
The region id of the contour.
| rcContour::rverts |
| rcContour::verts |
Simplified contour vertex and connection data. [Size: 4 * nverts].
The simplified contour is a version of the raw contour with all 'unnecessary' vertices removed. Whether a vertex is considered unnecessary depends on the contour build process.
The data format is as follows: (x, y, z, r) * nverts
A contour edge is formed by the current and next vertex. The r-value represents region and connection information for the edge. For example: