Class TileHandler

Public

Utility class for updating tiles of navmesh/recast graphs.

Most operations that this class does are asynchronous. They will be added as work items to the AstarPath class and executed when the pathfinding threads have finished calculating their current paths.

Inner Types

Private/Protected Members

AddContours (clipper, contours, contourVertices, contourIndices)
CalculateCutBounds (cutCollection, contourVerticesP64)
ClipAgainstRectangle (clipIn, clipTmp, size)

Clips the input polygon against a rectangle with one corner at the origin and one at size in XZ space.

CollectCuts (cuts, tileCoordinates, characterRadius, tileLayout, tileVertices, tileTriangles, tileTags)
CompressAndRefineTile (tileOutputVertices, tileOutputTriangles, tileOutputTags, allocator)
CopyClipperOutput (closedSolutions, outputVertices, outputVertexCountPerPolygon)
CopyTriangulationToOutput (triangulatorOutput, tileOutputVertices, tileOutputTriangles, tileOutputTags, tag, a, b, c)
CopyTriangulationToOutputMarker
Private Static Readonly
CutFunction (subject, contourVertices, contours, contourIndices, contourIndicesDual, outputVertices, outputVertexCountPerPolygon, dual)
CutFunctionPtr
Private Static Readonly
CutPolygon (subject, contourVertices, contours, contourIndices, contourIndicesDual, outputVertices, outputVertexCountPerPolygon, mode)
CutTiles (tileVertices, tileTriangles, tileTags, tileSize, cutCollection, output, allocator)
DelaunayRefinement (verts, tris, tags, delaunay, colinear)

Refine a mesh using delaunay refinement.

DelegateGCRoot
Private Static
EdgeSnappingMaxDistance

See SnapEdges.

Private Static
FindIntersectingCuts (contoursMeta, cutBounds, interestingCuts, interestingDualCuts, triBounds, addedGeometry)
MarkerAllocate
Private Static Readonly
MarkerClipping
Private Static Readonly
MarkerCompress
Private Static Readonly
MarkerCopyClippingResult
Private Static Readonly
MarkerCore
Private Static Readonly
MarkerEdgeSnapping
Private Static Readonly
MarkerPrepare
Private Static Readonly
MarkerRefine
Private Static Readonly
MarkerTriangulate
Private Static Readonly
SnapEdges (triBuffer, vertexCount, contours, interestingCuts, contourVerticesP64)

Find cut vertices that lie exactly on the polygon edges, and insert them into the polygon.

TriangleBounds (a, b, c)
cachedClipper
Private Static