This commit is contained in:
aozhiwei 2020-08-15 20:44:59 +08:00
parent 3fdf02a816
commit 0ecb37d272
2 changed files with 4 additions and 0 deletions

View File

@ -253,6 +253,7 @@ int NavMeshBuilder::RasterizeTileLayers(BuilderParams& builder_params,
return 0;
}
#if 0
// (Optional) Mark areas.
const ConvexVolume* vols = builder_params.gemo->GetConvexVolumes();
for (int i = 0; i < builder_params.gemo->GetConvexVolumeCount(); ++i) {
@ -260,6 +261,7 @@ int NavMeshBuilder::RasterizeTileLayers(BuilderParams& builder_params,
vols[i].hmin, vols[i].hmax,
vols[i].areaMod, *rc.chf);
}
#endif
rc.lset = rcAllocHeightfieldLayerSet();
if (!rc.lset) {

View File

@ -227,8 +227,10 @@ class InputGeom
const float* GetVerts() const { return nullptr; }
int GetVertCount() const { return 0; }
const rcChunkyTriMesh* GetChunkyMesh() { return nullptr; }
#if 0
const ConvexVolume* GetConvexVolumes() { return nullptr; }
int GetConvexVolumeCount() { return 0; }
#endif
};
struct BuilderParams