Class Voxelize
Voxelizer for recast graphs.
In comments: units wu are World Units, vx are Voxels
A* Pro Feature:
This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited.
The Pro version can be bought here
Public Methods
Builds a polygon mesh from a contour set.
Filters out or merges small regions.
Convert from voxel coordinates to world coordinates.
Convert from voxel coordinates to world coordinates.
Public Static Methods
Returns T iff (v_i, v_j) is a proper internal diagonal of P.
Returns true iff c is strictly to the left of the directed line through a to b.
(i+1) % n assuming 0 <= i < n
(i-1+n) % n assuming 0 <= i < n
Public Variables
The size of the non-navigable border around the heightfield.
The y-axis cell size to use for fields.
The xz-plane cell size to use for fields.
Depth in voxels.
The world AABB to rasterize.
The maximum allowed length for contour edges along the border of the mesh.
The maximum slope that is considered walkable.
Tessellate edges between areas.
Tessellate edges at the border of the tile.
Tessellate wall edges.
Transform from voxel space to graph space.
Maximum ledge height that is considered to still be traversable.
Minimum floor to 'ceiling' height that will still allow the floor area to be considered walkable.
Width in voxels.
Private/Protected Members
If heightfield region ID has the following bit set, the region is on border area and excluded from many calculations.
Mask used with contours to extract region id.
Returns T iff (v_i, v_j) is a proper internal *or* external diagonal of P, *ignoring edges incident to v_i and v_j*.
Unmotivated variable, but let's clamp the layers at 65535.
If contour region ID has the following bit set, the vertex will be later removed in order to match the segments and vertices at tile boundaries.
Releases contents of a contour set to caches.
Transform from voxel space to world space.
Find method in the UnionFind data structure.
Join method in the UnionFind data structure.