Recast: fix typo's in comments

This commit is contained in:
Kawe Mazidjatari 2024-07-12 14:13:49 +02:00
parent 88052ba558
commit 67db52508b

View File

@ -968,7 +968,7 @@ static bool buildPolyDetail(rcContext* ctx, const float* in, const int nin,
// Add the samples starting from the one that has the most // Add the samples starting from the one that has the most
// error. The procedure stops when all samples are added // error. The procedure stops when all samples are added
// or when the max error is within treshold. // or when the max error is within threshold.
const int nsamples = samples.size()/4; const int nsamples = samples.size()/4;
for (int iter = 0; iter < nsamples; ++iter) for (int iter = 0; iter < nsamples; ++iter)
{ {
@ -998,7 +998,7 @@ static bool buildPolyDetail(rcContext* ctx, const float* in, const int nin,
rcVcopy(bestpt,pt); rcVcopy(bestpt,pt);
} }
} }
// If the max error is within accepted threshold, stop tesselating. // If the max error is within accepted threshold, stop tessellating.
if (bestd <= sampleMaxError || besti == -1) if (bestd <= sampleMaxError || besti == -1)
break; break;
// Mark sample as added. // Mark sample as added.