Recast Navigation
Navigation-mesh Toolset for Games
rcContourSet Struct Reference

Represents a group of related contours. More...

#include <Recast.h>

Public Member Functions

 rcContourSet ()
 
 ~rcContourSet ()
 

Public Attributes

rcContourconts
 An array of the contours in the set. [Size: nconts]. More...
 
int nconts
 The number of contours in the set. More...
 
float bmin [3]
 The minimum bounds in world space. [(x, y, z)]. More...
 
float bmax [3]
 The maximum bounds in world space. [(x, y, z)]. More...
 
float cs
 The size of each cell. (On the xz-plane.) More...
 
float ch
 The height of each cell. (The minimum increment along the y-axis.) More...
 
int width
 The width of the set. (Along the x-axis in cell units.) More...
 
int height
 The height of the set. (Along the z-axis in cell units.) More...
 
int borderSize
 The AABB border size used to generate the source data from which the contours were derived. More...
 
float maxError
 The max edge error that this contour set was simplified with. More...
 

Description

Represents a group of related contours.

All contours within the set share the minimum bounds and cell sizes of the set.

The standard process for building a contour set is to allocate it using rcAllocContourSet, then initialize it using rcBuildContours.

See also
rcAllocContourSet, rcFreeContourSet, rcBuildContours

Constructor & Destructor Documentation

◆ rcContourSet()

rcContourSet::rcContourSet ( )

◆ ~rcContourSet()

rcContourSet::~rcContourSet ( )

Member Data Documentation

◆ bmax

float rcContourSet::bmax[3]

The maximum bounds in world space. [(x, y, z)].

◆ bmin

float rcContourSet::bmin[3]

The minimum bounds in world space. [(x, y, z)].

◆ borderSize

int rcContourSet::borderSize

The AABB border size used to generate the source data from which the contours were derived.

◆ ch

float rcContourSet::ch

The height of each cell. (The minimum increment along the y-axis.)

◆ conts

rcContour* rcContourSet::conts

An array of the contours in the set. [Size: nconts].

◆ cs

float rcContourSet::cs

The size of each cell. (On the xz-plane.)

◆ height

int rcContourSet::height

The height of the set. (Along the z-axis in cell units.)

◆ maxError

float rcContourSet::maxError

The max edge error that this contour set was simplified with.

◆ nconts

int rcContourSet::nconts

The number of contours in the set.

◆ width

int rcContourSet::width

The width of the set. (Along the x-axis in cell units.)


The documentation for this struct was generated from the following files: