Added option to tesselate edges between areas. Fixed bug in orphan contour merging, which could create overlapping contour.

This commit is contained in:
Mikko Mononen
2010-05-26 09:20:57 +00:00
parent 49f2b03cd8
commit 11386cedcf
10 changed files with 3285 additions and 1821 deletions

View File

@@ -983,7 +983,7 @@ struct rcSweepSpan
};
bool rcBuildRegionsMonotone(rcCompactHeightfield& chf,
int borderSize, int minRegionSize, int mergeRegionSize)
const int borderSize, const int minRegionSize, const int mergeRegionSize)
{
rcTimeVal startTime = rcGetPerformanceTimer();
@@ -1134,7 +1134,7 @@ bool rcBuildRegionsMonotone(rcCompactHeightfield& chf,
}
bool rcBuildRegions(rcCompactHeightfield& chf,
int borderSize, int minRegionSize, int mergeRegionSize)
const int borderSize, const int minRegionSize, const int mergeRegionSize)
{
rcTimeVal startTime = rcGetPerformanceTimer();