mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-09-29 05:26:12 +00:00
Moved common functions behind name decoration.
This commit is contained in:
@@ -819,8 +819,8 @@ bool rcBuildPolyMesh(rcContourSet& cset, int nvp, rcPolyMesh& mesh)
|
||||
{
|
||||
rcTimeVal startTime = rcGetPerformanceTimer();
|
||||
|
||||
vcopy(mesh.bmin, cset.bmin);
|
||||
vcopy(mesh.bmax, cset.bmax);
|
||||
rcVcopy(mesh.bmin, cset.bmin);
|
||||
rcVcopy(mesh.bmax, cset.bmax);
|
||||
mesh.cs = cset.cs;
|
||||
mesh.ch = cset.ch;
|
||||
|
||||
@@ -1125,16 +1125,16 @@ bool rcMergePolyMeshes(rcPolyMesh** meshes, const int nmeshes, rcPolyMesh& mesh)
|
||||
mesh.nvp = meshes[0]->nvp;
|
||||
mesh.cs = meshes[0]->cs;
|
||||
mesh.ch = meshes[0]->ch;
|
||||
vcopy(mesh.bmin, meshes[0]->bmin);
|
||||
vcopy(mesh.bmax, meshes[0]->bmax);
|
||||
rcVcopy(mesh.bmin, meshes[0]->bmin);
|
||||
rcVcopy(mesh.bmax, meshes[0]->bmax);
|
||||
|
||||
int maxVerts = 0;
|
||||
int maxPolys = 0;
|
||||
int maxVertsPerMesh = 0;
|
||||
for (int i = 0; i < nmeshes; ++i)
|
||||
{
|
||||
vmin(mesh.bmin, meshes[i]->bmin);
|
||||
vmax(mesh.bmax, meshes[i]->bmax);
|
||||
rcVmin(mesh.bmin, meshes[i]->bmin);
|
||||
rcVmax(mesh.bmax, meshes[i]->bmax);
|
||||
maxVertsPerMesh = rcMax(maxVertsPerMesh, meshes[i]->nverts);
|
||||
maxVerts += meshes[i]->nverts;
|
||||
maxPolys += meshes[i]->npolys;
|
||||
|
||||
Reference in New Issue
Block a user