mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-11-18 13:56:00 +00:00
Layer progress: Fixed reg building with multiple areas. Added contour generation.
This commit is contained in:
@@ -112,6 +112,28 @@ void rcFreeHeightfieldLayerSet(rcHeightfieldLayerSet* lset)
|
||||
rcFree(lset);
|
||||
}
|
||||
|
||||
|
||||
rcLayerContourSet* rcAllocLayerContourSet()
|
||||
{
|
||||
rcLayerContourSet* cset = (rcLayerContourSet*)rcAlloc(sizeof(rcLayerContourSet), RC_ALLOC_PERM);
|
||||
memset(cset, 0, sizeof(rcLayerContourSet));
|
||||
return cset;
|
||||
}
|
||||
|
||||
void rcFreeLayerContourSet(rcLayerContourSet* cset)
|
||||
{
|
||||
if (!cset) return;
|
||||
for (int i = 0; i < cset->nconts; ++i)
|
||||
{
|
||||
rcFree(cset->conts[i].verts);
|
||||
// rcFree(cset->conts[i].rverts);
|
||||
}
|
||||
rcFree(cset->conts);
|
||||
rcFree(cset);
|
||||
}
|
||||
|
||||
|
||||
|
||||
rcContourSet* rcAllocContourSet()
|
||||
{
|
||||
rcContourSet* cset = (rcContourSet*)rcAlloc(sizeof(rcContourSet), RC_ALLOC_PERM);
|
||||
|
||||
Reference in New Issue
Block a user