pub fn create_tile_data(params: &CreateParams<'_>) -> Result<TileData>Expand description
Builds one Detour tile (version 12) from a poly mesh, the DayZ way (spec 7.3).
No detail mesh is produced. Off-mesh connections are stored only when their start point is
inside the tile; max_link_count also reserves slots for every endpoint inside the tile of
every passed connection. The BV tree is built over the ground polygons. The links are zeroed
(linking happens when the tile is added to a mesh) and the extra section is a copy of
params.extra.
ยงErrors
Returns an error for an empty vertex or polygon list, nvp above 6 or zero, 65535 or more
vertices, slices of inconsistent lengths, vertex indices outside the vertex list, a polygon
without vertices, or more off-mesh polygons or vertices than 16 bits can index.